From 1cdb21e21560161363d46c66a72b4110d4297ac7 Mon Sep 17 00:00:00 2001 From: Rendy Arya Kemal Date: Wed, 19 Jun 2024 19:20:47 +0700 Subject: [PATCH] fix: use regular env variable expression --- .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 69df1eb..fa25d30 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -23,7 +23,7 @@ jobs: - name: "Docker auth" run: |- - gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet + gcloud auth configure-docker $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 ${{ env.GAR_LOCATION }} . + docker build --tag $GAR_LOCATION . - name: Push image - run: docker push ${{ env.GAR_LOCATION }} + run: docker push $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 ${{ env.GAR_LOCATION }} + docker run --name chefies-backend -e GOOGLE_APPLICATION_CREDENTIALS="/app/keys/credentials.json" -d --restart always -p 9000:80 $GAR_LOCATION