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: