From e8b3e9d4a5e5bb5628f95880f2ab2c4d43974beb Mon Sep 17 00:00:00 2001 From: Rendy Arya Kemal Date: Wed, 19 Jun 2024 19:22:13 +0700 Subject: [PATCH] Revert "fix: use regular env variable expression" This reverts commit 1cdb21e21560161363d46c66a72b4110d4297ac7. --- .github/workflows/deployment.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index fa25d30..69df1eb 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -23,7 +23,7 @@ jobs: - name: "Docker auth" run: |- - gcloud auth configure-docker $REGION-docker.pkg.dev --quiet + gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet - name: Build Docker Image run: | @@ -31,10 +31,10 @@ jobs: echo '${{ secrets.CREDENTIALS }}' > ./keys/credentials.json ls ls ./keys - docker build --tag $GAR_LOCATION . + docker build --tag ${{ env.GAR_LOCATION }} . - name: Push image - run: docker push $GAR_LOCATION + run: docker push ${{ env.GAR_LOCATION }} - name: Run Docker Image uses: appleboy/ssh-action@v0.1.10 @@ -46,4 +46,4 @@ jobs: script: | docker container rm -f chefies-backend docker image rm -f chefies-backend - docker run --name chefies-backend -e GOOGLE_APPLICATION_CREDENTIALS="/app/keys/credentials.json" -d --restart always -p 9000:80 $GAR_LOCATION + docker run --name chefies-backend -e GOOGLE_APPLICATION_CREDENTIALS="/app/keys/credentials.json" -d --restart always -p 9000:80 ${{ env.GAR_LOCATION }}