From 56324c2d05816d2b17f6b5efc4c9117d7f95810b Mon Sep 17 00:00:00 2001 From: Dunemask Date: Tue, 13 Feb 2024 16:25:01 -0700 Subject: [PATCH 01/20] [FIX] Restored action to oasis-deploy --- action.yml | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..b779095 --- /dev/null +++ b/action.yml @@ -0,0 +1,76 @@ +name: 'Oasis Config Action' +description: 'Configure env for deploying apps using Oasis' +inputs: + kubeconfig: + description: 'A base64 encoded string of the kubeconfig to use. Required!' + required: true + gitea-token: + description: 'Gitea token for downloading repositories' + required: true + garden-version: + description: 'Version of Garden to deploy' + required: false + default: 0.13.24 + oasis-branch: + description: 'Branch of Oasis to use' + required: false + default: master + oasis-workspace: + descipriont: 'Workspace to setup Oasis' + required: false + default: ${{ gitea.workspace}}/oasis +runs: + using: "composite" + steps: + # Set additional Envars + - name: Setting Short Commit Sha + run: echo SHORT_COMMIT_SHA=$(echo $GITHUB_SHA | cut -c 1-6) >> $GITHUB_ENV + - name: Setup Enviornment Variables + run: | + echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV + echo REPO_GITEA_TOKEN_RO=$GITEA_TOKEN >> $GITHUB_ENV + env: + GITEA_TOKEN: ${{ inputs.gitea-token }} + # Checkout Oasis + - name: Checkout Oasis + uses: actions/checkout@v3 + with: + repository: "elysium/oasis" + path: ${{ inputs.oasis-workspace }} + token: ${{ inputs.gitea-token}} + ref: ${{ inputs.oasis-branch }} + - name: Download Garden + shell: bash + env: + GARDEN_BIN_VERSION: ${{ inputs.garden-version }} + GARDEN_DIR: ${{ runner.temp }}/garden + run: | + # Install Garden + mkdir -p "$GARDEN_DIR" + cd "$GARDEN_DIR" + if ! [ -d "$GARDEN_BIN_VERSION" ]; then + echo "Downloading ${GARDEN_BIN_VERSION}..." + if [[ "$GARDEN_BIN_VERSION" = "latest" ]]; then + tag_param="" + else + tag_param="$GARDEN_BIN_VERSION" + fi + fi + curl -sL https://get.garden.io/install.sh | bash -s -- $tag_param + echo PATH=$PATH:$HOME/.garden/bin >> $GITHUB_ENV + git config --global --add safe.directory $HOME/.garden/bin/static + # Configure K&S + - name: Configure K8S + run: | + echo "Setup kubeconfig" + mkdir -p ~/.kube && + echo "${KUBECONFIG_BASE64}" | base64 -d > ~/.kube/config && + chmod 700 ~/.kube/config + env: + KUBECONFIG_BASE64: ${{ inputs.kubeconfig }} + - name: Export Envars + shell: bash + run: | + # Export environment variables + echo OASIS_WORKSPACE=${{ inputs.oasis-workspace }} >> $GITHUB_ENV + From 1e632a3f91b0a7425d14ea8a85af19dab19fd819 Mon Sep 17 00:00:00 2001 From: dunemask Date: Tue, 13 Feb 2024 23:32:53 +0000 Subject: [PATCH 02/20] Update README.md --- README.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 87f9314..e4fd7c2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,40 @@ # Elysium Actions ## About -The actions are used by Elysium to run CI/CD tasks and this repo will be archived once Gitea supports private actions (See issue [Here](https://github.com/go-gitea/gitea/issues/24621) ) +The actions are used by Elysium to run CI/CD tasks and this repo will be archived once Gitea supports private actions (See issue [Here](https://github.com/go-gitea/gitea/issues/24621)) + +## Actions + +The actions available are: +- [S3 Backup](https://gitea.dunemask.dev/elysium/elysium-actions/src/branch/s3-backup/action.yml) +- [Oasis Deploy](https://gitea.dunemask.dev/elysium/elysium-actions/src/branch/oasis-deploy/action.yml) +- [Infisical Env](https://gitea.dunemask.dev/elysium/elysium-actions/src/branch/infisical-env/action.yml) +- [Elysium CI/CD](https://gitea.dunemask.dev/elysium/elysium-actions/src/branch/elysium-ci-cd/action.yml) + +## Workflow Template + +The example below demonstrates how to use the [oasis-deploy](https://gitea.dunemask.dev/elysium/elysium-actions/src/branch/oasis-deploy/action.yml) action. + +```yml +name: Deploy Edge +run-name: ${{ gitea.actor }} Deploy Edge +on: + push: + branches: [ master ] + +env: + GITEA_TOKEN: ${{ secrets.ELYSIUM_ORG_READ_TOKEN }} + KUBECONFIG_BASE64: ${{ secrets.KUBECONFIG_USW_EDGE }} + GARDEN_DEPLOY_ACTION: nile + +jobs: + deploy-edge: + steps: + - name: Oasis Setup + uses: https://gitea.dunemask.dev/elysium/elysium-actions@oasis-deploy + with: + gitea-token: ${{ env.GITEA_TOKEN }} + kubeconfig: ${{ env.KUBECONFIG_BASE64 }} + - name: Deploy to Edge env + run: garden deploy $GARDEN_DEPLOY_ACTION --force --force-build --env usw-edge + working-directory: ${{ env.OASIS_WORKSPACE }} +``` From f80938e7fab141067e6447057aec4bbbfbeee26b Mon Sep 17 00:00:00 2001 From: Dunemask Date: Tue, 13 Feb 2024 23:46:09 -0700 Subject: [PATCH 03/20] [FEATURE] Oasis Action --- action.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index b779095..265e640 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,8 @@ inputs: required: true gitea-token: description: 'Gitea token for downloading repositories' - required: true + required: false + default: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }} garden-version: description: 'Version of Garden to deploy' required: false @@ -28,9 +29,7 @@ runs: - name: Setup Enviornment Variables run: | echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV - echo REPO_GITEA_TOKEN_RO=$GITEA_TOKEN >> $GITHUB_ENV - env: - GITEA_TOKEN: ${{ inputs.gitea-token }} + echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV # Checkout Oasis - name: Checkout Oasis uses: actions/checkout@v3 From 72a9c62af4050bca197a61f705fbba9f17385491 Mon Sep 17 00:00:00 2001 From: dunemask Date: Thu, 15 Feb 2024 03:04:35 +0000 Subject: [PATCH 04/20] [DEBUG] Action Debugging --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 265e640..f8cf774 100644 --- a/action.yml +++ b/action.yml @@ -29,7 +29,8 @@ runs: - name: Setup Enviornment Variables run: | echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV - echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV + echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV + echo "GITEA TOKEN '${{ inputs.gitea-token }}'" # Checkout Oasis - name: Checkout Oasis uses: actions/checkout@v3 From dbf8182e818f1ffbbf1684f3864c3e6cd9fcb755 Mon Sep 17 00:00:00 2001 From: dunemask Date: Thu, 15 Feb 2024 03:18:12 +0000 Subject: [PATCH 05/20] Update action.yml --- action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index f8cf774..0512a83 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ inputs: gitea-token: description: 'Gitea token for downloading repositories' required: false - default: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }} + # default: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }} # Action can't read this as a default, so we've gotta do a check later garden-version: description: 'Version of Garden to deploy' required: false @@ -29,8 +29,11 @@ runs: - name: Setup Enviornment Variables run: | echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV - echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV - echo "GITEA TOKEN '${{ inputs.gitea-token }}'" + if [ ! -z "${{ inputs.gitea-token }}" -a "${{ inputs.gitea-token }}" != " " ]; then + echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV + fi + echo "GITEA TOKEN '${{ inputs.gitea-token }}'" + echo "ENV_TOKEN $DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN" # Checkout Oasis - name: Checkout Oasis uses: actions/checkout@v3 From a704cbfd10d3d4f85d378a6f28efd4b5c908ae82 Mon Sep 17 00:00:00 2001 From: dunemask Date: Thu, 15 Feb 2024 03:19:39 +0000 Subject: [PATCH 06/20] Update action.yml --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 0512a83..f3ecae1 100644 --- a/action.yml +++ b/action.yml @@ -30,10 +30,12 @@ runs: run: | echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV if [ ! -z "${{ inputs.gitea-token }}" -a "${{ inputs.gitea-token }}" != " " ]; then + echo "NOT EMPTY ${{ inputs.gitea-token}}" + echo "GITEA TOKEN '${{ inputs.gitea-token }}'" + echo "ENV_TOKEN $DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN" echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV fi - echo "GITEA TOKEN '${{ inputs.gitea-token }}'" - echo "ENV_TOKEN $DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN" + # Checkout Oasis - name: Checkout Oasis uses: actions/checkout@v3 From e7920efd4203553c09f08acec58eb34c0e12215f Mon Sep 17 00:00:00 2001 From: dunemask Date: Thu, 15 Feb 2024 03:23:43 +0000 Subject: [PATCH 07/20] Update action.yml --- action.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/action.yml b/action.yml index f3ecae1..0e71a05 100644 --- a/action.yml +++ b/action.yml @@ -30,9 +30,6 @@ runs: run: | echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV if [ ! -z "${{ inputs.gitea-token }}" -a "${{ inputs.gitea-token }}" != " " ]; then - echo "NOT EMPTY ${{ inputs.gitea-token}}" - echo "GITEA TOKEN '${{ inputs.gitea-token }}'" - echo "ENV_TOKEN $DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN" echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV fi @@ -42,7 +39,7 @@ runs: with: repository: "elysium/oasis" path: ${{ inputs.oasis-workspace }} - token: ${{ inputs.gitea-token}} + token: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }} ref: ${{ inputs.oasis-branch }} - name: Download Garden shell: bash From b59a89cf52fe2d2adf48ba8db84d97b4fae0ce40 Mon Sep 17 00:00:00 2001 From: dunemask Date: Thu, 15 Feb 2024 03:24:29 +0000 Subject: [PATCH 08/20] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 0e71a05..44128f3 100644 --- a/action.yml +++ b/action.yml @@ -30,6 +30,7 @@ runs: run: | echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV if [ ! -z "${{ inputs.gitea-token }}" -a "${{ inputs.gitea-token }}" != " " ]; then + echo "Somehow setting? ${{ inputs.gitea-token }}" echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV fi From fec0d92bbe27e3839e590e37f2672c0e87b611a3 Mon Sep 17 00:00:00 2001 From: dunemask Date: Thu, 15 Feb 2024 03:26:01 +0000 Subject: [PATCH 09/20] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 44128f3..7e54938 100644 --- a/action.yml +++ b/action.yml @@ -33,6 +33,7 @@ runs: echo "Somehow setting? ${{ inputs.gitea-token }}" echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV fi + echo "Ans so I CRI sometimes cuz I got right here and I echo this var '$DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN'" # Checkout Oasis - name: Checkout Oasis From a4697b265515fb0747331e4186bb67d2dfea15c4 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 20:41:56 -0700 Subject: [PATCH 10/20] [DEBUG] Debug --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 7e54938..d9a9852 100644 --- a/action.yml +++ b/action.yml @@ -28,6 +28,7 @@ runs: run: echo SHORT_COMMIT_SHA=$(echo $GITHUB_SHA | cut -c 1-6) >> $GITHUB_ENV - name: Setup Enviornment Variables run: | + echo "OLD: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }}" echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV if [ ! -z "${{ inputs.gitea-token }}" -a "${{ inputs.gitea-token }}" != " " ]; then echo "Somehow setting? ${{ inputs.gitea-token }}" From 3d7e62eb3099e7496f9dc20031c839613811202f Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 20:43:59 -0700 Subject: [PATCH 11/20] [DEBUG] Debug --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d9a9852..a6e715e 100644 --- a/action.yml +++ b/action.yml @@ -27,6 +27,7 @@ runs: - name: Setting Short Commit Sha run: echo SHORT_COMMIT_SHA=$(echo $GITHUB_SHA | cut -c 1-6) >> $GITHUB_ENV - name: Setup Enviornment Variables + shell: bash run: | echo "OLD: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }}" echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV @@ -35,7 +36,9 @@ runs: echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV fi echo "Ans so I CRI sometimes cuz I got right here and I echo this var '$DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN'" - + - name: See envars + shell: bash + run: echo $DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN # Checkout Oasis - name: Checkout Oasis uses: actions/checkout@v3 From 6b1260fa4b1ea452031c1e1c29828c49a97dffd6 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 20:45:13 -0700 Subject: [PATCH 12/20] [DEBUG] Debug --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a6e715e..b70c43b 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ inputs: gitea-token: description: 'Gitea token for downloading repositories' required: false - # default: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }} # Action can't read this as a default, so we've gotta do a check later + default: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }} # Action can't read this as a default, so we've gotta do a check later garden-version: description: 'Version of Garden to deploy' required: false From c021ec21ba98806b241a36524e3b67129c59a36d Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 20:46:00 -0700 Subject: [PATCH 13/20] [DEBUG] Debug --- action.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/action.yml b/action.yml index b70c43b..82b0ca3 100644 --- a/action.yml +++ b/action.yml @@ -29,16 +29,9 @@ runs: - name: Setup Enviornment Variables shell: bash run: | - echo "OLD: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }}" + echo "OLD: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }}" echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV - if [ ! -z "${{ inputs.gitea-token }}" -a "${{ inputs.gitea-token }}" != " " ]; then - echo "Somehow setting? ${{ inputs.gitea-token }}" - echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV - fi - echo "Ans so I CRI sometimes cuz I got right here and I echo this var '$DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN'" - - name: See envars - shell: bash - run: echo $DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN + echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV # Checkout Oasis - name: Checkout Oasis uses: actions/checkout@v3 From cb90f85f92cf515efbb2e5c2993e0e0206326549 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 21:08:40 -0700 Subject: [PATCH 14/20] [DEBUG] Debug --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 82b0ca3..857de6d 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ inputs: gitea-token: description: 'Gitea token for downloading repositories' required: false - default: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }} # Action can't read this as a default, so we've gotta do a check later + default: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }} # Action can't read env, so we need to reset it later garden-version: description: 'Version of Garden to deploy' required: false @@ -29,7 +29,7 @@ runs: - name: Setup Enviornment Variables shell: bash run: | - echo "OLD: ${{ env.DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN }}" + env echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV # Checkout Oasis From 6f64a8a9ffb0b9c821e209b843edf9f3ee3d822d Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 21:24:22 -0700 Subject: [PATCH 15/20] [DEBUG] Debug --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index 857de6d..08fe85b 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,8 @@ runs: - name: Setup Enviornment Variables shell: bash run: | + echo "PARENT GOT ENV ^^^^" + echo "GOT ENV BELOW vvvv" env echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV From 7cbaae0be335f7cd4a13fb103770103c4cfde52a Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 21:27:53 -0700 Subject: [PATCH 16/20] [DEBUG] Debug --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 08fe85b..d413241 100644 --- a/action.yml +++ b/action.yml @@ -65,6 +65,7 @@ runs: # Configure K&S - name: Configure K8S run: | + echo ${{ inputs.kubeconfig }} echo "Setup kubeconfig" mkdir -p ~/.kube && echo "${KUBECONFIG_BASE64}" | base64 -d > ~/.kube/config && From 08b815286f483fe67a7bd5365afe0b25993a4d23 Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 21:36:48 -0700 Subject: [PATCH 17/20] [DEBUG] Debug --- action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/action.yml b/action.yml index d413241..a7c98c1 100644 --- a/action.yml +++ b/action.yml @@ -66,6 +66,8 @@ runs: - name: Configure K8S run: | echo ${{ inputs.kubeconfig }} + echo "-----" + echo "${KUBECONFIG_BASE64}" echo "Setup kubeconfig" mkdir -p ~/.kube && echo "${KUBECONFIG_BASE64}" | base64 -d > ~/.kube/config && From e8f5a00cef09e744a8e80c0b928b089d7585270e Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 21:38:04 -0700 Subject: [PATCH 18/20] [DEBUG] Debug --- action.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/action.yml b/action.yml index a7c98c1..8fcf565 100644 --- a/action.yml +++ b/action.yml @@ -65,15 +65,10 @@ runs: # Configure K&S - name: Configure K8S run: | - echo ${{ inputs.kubeconfig }} - echo "-----" - echo "${KUBECONFIG_BASE64}" echo "Setup kubeconfig" mkdir -p ~/.kube && - echo "${KUBECONFIG_BASE64}" | base64 -d > ~/.kube/config && + echo ${{ inputs.kubeconfig }} | base64 -d > ~/.kube/config && chmod 700 ~/.kube/config - env: - KUBECONFIG_BASE64: ${{ inputs.kubeconfig }} - name: Export Envars shell: bash run: | From 636bb98d2fbe34563882b3e027bcd5852214fa4f Mon Sep 17 00:00:00 2001 From: Dunemask Date: Wed, 14 Feb 2024 21:40:14 -0700 Subject: [PATCH 19/20] [FIX] Fixed Oasis --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 8fcf565..b371dad 100644 --- a/action.yml +++ b/action.yml @@ -29,11 +29,9 @@ runs: - name: Setup Enviornment Variables shell: bash run: | - echo "PARENT GOT ENV ^^^^" - echo "GOT ENV BELOW vvvv" - env echo CI_NAMESPACE=ci-$SHORT_COMMIT_SHA >> $GITHUB_ENV echo DEVOPS_GITEA_ELYSIUM_ORG_READ_TOKEN=${{ inputs.gitea-token }} >> $GITHUB_ENV + echo "Checking out Oasis" # Checkout Oasis - name: Checkout Oasis uses: actions/checkout@v3 @@ -62,13 +60,15 @@ runs: curl -sL https://get.garden.io/install.sh | bash -s -- $tag_param echo PATH=$PATH:$HOME/.garden/bin >> $GITHUB_ENV git config --global --add safe.directory $HOME/.garden/bin/static + echo "Finished intalling Garden!" # Configure K&S - name: Configure K8S run: | echo "Setup kubeconfig" mkdir -p ~/.kube && echo ${{ inputs.kubeconfig }} | base64 -d > ~/.kube/config && - chmod 700 ~/.kube/config + chmod 700 ~/.kube/config + echo "Finished setting up kubeconfig" - name: Export Envars shell: bash run: | From 902de144dc1db30f33e5d265c798734a5a147ed1 Mon Sep 17 00:00:00 2001 From: dunemask Date: Sun, 7 Apr 2024 02:43:01 +0000 Subject: [PATCH 20/20] [CHORE] Bump garden to 13.29 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b371dad..4a275e7 100644 --- a/action.yml +++ b/action.yml @@ -11,7 +11,7 @@ inputs: garden-version: description: 'Version of Garden to deploy' required: false - default: 0.13.24 + default: 0.13.29 oasis-branch: description: 'Branch of Oasis to use' required: false