Skip to content

Commit

Permalink
Merge pull request #13 from sprinthubmobile/feat/gvm
Browse files Browse the repository at this point in the history
chore: Use service account for app build
  • Loading branch information
cybersokari authored Jun 12, 2024
2 parents 0e0f403 + 686db42 commit 8468969
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 8468969

Please sign in to comment.