From def0658089e36d9e659a273e217330307e70c96f Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Fri, 7 Nov 2025 21:40:10 -0300 Subject: [PATCH 1/2] fix: fixes the decryption process in the ci --- .github/workflows/deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f468a5a..a49391f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,6 +2,12 @@ name: ci on: push: + workflow_dispatch: + inputs: + tag: + description: 'Tag to deploy' + required: false + default: 'latest' jobs: build: @@ -139,7 +145,7 @@ jobs: - name: Decrypt SOPS Secrets Test run: | cd .k8s - sops -d secrets.enc.yml secrets.yml + sops -d secrets.enc.yml > secrets.yml - name: Apply Kubernetes Manifests - Configuration run: cat .k8s/config.template.yml | envsubst | kubectl apply -f - From 9042b8d33bf1a8d93f7028367419eddcde646bb6 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Fri, 7 Nov 2025 21:42:36 -0300 Subject: [PATCH 2/2] fix: fixes deploy by tag in dispatcher --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a49391f..b8ac5f7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,7 +7,6 @@ on: tag: description: 'Tag to deploy' required: false - default: 'latest' jobs: build: @@ -128,7 +127,7 @@ jobs: SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7) IMAGE_BASE="ghcr.io/${OWNER}/${REPO}" - IMAGE_TAG="sha-${SHORT_SHA}" + IMAGE_TAG=${{ github.event.inputs.tag || format('sha-{0}', github.sha) }} echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV