Skip to content

Commit

Permalink
fix: apparently i couldnt read (env -> vars)
Browse files Browse the repository at this point in the history
  • Loading branch information
rorre committed Jun 19, 2024
1 parent e8b3e9d commit 916dbe3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ jobs:

- name: "Docker auth"
run: |-
gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet
gcloud auth configure-docker ${{ vars.REGION }}-docker.pkg.dev --quiet
- name: Build Docker Image
run: |
mkdir ./keys
echo '${{ secrets.CREDENTIALS }}' > ./keys/credentials.json
ls
ls ./keys
docker build --tag ${{ env.GAR_LOCATION }} .
docker build --tag ${{ vars.GAR_LOCATION }} .
- name: Push image
run: docker push ${{ env.GAR_LOCATION }}
run: docker push ${{ vars.GAR_LOCATION }}

- name: Run Docker Image
uses: appleboy/[email protected]
Expand All @@ -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 ${{ vars.GAR_LOCATION }}

0 comments on commit 916dbe3

Please sign in to comment.