From d949c63903fbdc485f9b3dee1817f42e38783c07 Mon Sep 17 00:00:00 2001 From: Rendy Arya Kemal Date: Wed, 19 Jun 2024 19:30:44 +0700 Subject: [PATCH] fix(ci): add image name on push --- .github/workflows/deployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 479aadb..a471b64 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -31,7 +31,7 @@ jobs: echo '${{ secrets.CREDENTIALS }}' > ./keys/credentials.json ls ls ./keys - docker build --tag ${{ vars.GAR_LOCATION }} . + docker build --tag ${{ vars.GAR_LOCATION }}/backend . - name: Push image run: docker push ${{ vars.GAR_LOCATION }} @@ -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 ${{ vars.GAR_LOCATION }} + docker run --name chefies-backend -e GOOGLE_APPLICATION_CREDENTIALS="/app/keys/credentials.json" -d --restart always -p 9000:80 ${{ vars.GAR_LOCATION }}/backend