From 7000afc84b94641e786b921e4422799da5d04dcb Mon Sep 17 00:00:00 2001 From: PedroQuessada Date: Thu, 14 Mar 2024 17:39:07 -0300 Subject: [PATCH] change image name --- .github/workflows/deploy-app.yml | 1 + k8s/api-deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-app.yml b/.github/workflows/deploy-app.yml index af5f396..8a3403b 100644 --- a/.github/workflows/deploy-app.yml +++ b/.github/workflows/deploy-app.yml @@ -47,6 +47,7 @@ jobs: - name: Deploy deployment to GKE working-directory: k8s/ run: | + export IMAGE_NAME=${{ vars.REGION }}-docker.pkg.dev/${{ vars.PROJECT_ID }}/${{ vars.prefix }}-${{ vars.PROJECT_ID }}/app:${{ github.run_id }} kubectl apply -f api-configmap.yaml kubectl apply -f api-deployment.yaml kubectl apply -f api-service.yaml diff --git a/k8s/api-deployment.yaml b/k8s/api-deployment.yaml index bdadfc2..e67c406 100644 --- a/k8s/api-deployment.yaml +++ b/k8s/api-deployment.yaml @@ -14,7 +14,7 @@ spec: spec: containers: - name: api-container - image: "${{ env.IMAGE_NAME }}" + image: $IMAGE_NAME workingDir: /usr/api resources: requests: