Skip to content

Commit

Permalink
chore: Use service account for app build
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersokari committed Jun 12, 2024
1 parent 6b99932 commit 686db42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Copy Google Default credentials
run: cp $HOME/.config/gcloud/application_default_credentials.json ./cred.json
- name: Create Google Default credentials file
run: |
echo "${{ secrets.GCLOUD_SERVICE_KEY }}" > cred.json
- name: Build Image
run: docker build -t web . --build-arg project_id=${{vars.PROJECT_ID}}
Expand Down

0 comments on commit 686db42

Please sign in to comment.