From 7cea617720f94e1d978dd3dfefca18641da759a3 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Sun, 2 Nov 2025 18:49:26 -0300 Subject: [PATCH] fix: fixes broken build --- .github/workflows/deploy.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 838ccc2..e4b918e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -104,16 +104,25 @@ jobs: method: kubeconfig kubeconfig: ${{ secrets.PORTFOLIO_KUBECONFIG }} - - name: Deploy to Kubernetes + - name: Prepare Image Tag run: | OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | tr '[:upper:]' '[:lower:]') REPO=$(echo "${GITHUB_REPOSITORY#*/}" | tr '[:upper:]' '[:lower:]') IMAGE_BASE="ghcr.io/${OWNER}/${REPO}" IMAGE_TAG="${{ github.event.inputs.tag || 'latest' }}" + + echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV + echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV - # Apply any other configuration changes if needed - envsubst < .k8s/config.yml | kubectl apply -f - - envsubst < .k8s/deployment.yaml | kubectl apply -f - - envsubst < .k8s/service.yaml | kubectl apply -f - - envsubst < .k8s/ingress.yaml | kubectl apply -f - \ No newline at end of file + - name: Apply Kubernetes Manifests - Configuration + run: envsubst < .k8s/config.yml | kubectl apply -f - + + - name: Apply Kubernetes Manifests - Deployment + run: envsubst < .k8s/deployment.yaml | kubectl apply -f - + + - name: Apply Kubernetes Manifests - Service + run: envsubst < .k8s/service.yaml | kubectl apply -f - + + - name: Apply Kubernetes Manifests - Ingress + run: envsubst < .k8s/ingress.yaml | kubectl apply -f - \ No newline at end of file