Skip to content

Commit

Permalink
feat: adding the gcp auth
Browse files Browse the repository at this point in the history
  • Loading branch information
benjivesterby committed Jun 27, 2024
1 parent 7835e90 commit b38905a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 1.22
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0.4.0'
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Docker Login
uses: docker/login-action@v2
with:
registry: us-east1-docker.pkg.dev/codepros/codepros
username: ${{ secrets.GCP_USER }}
password: ${{ secrets.GCP_PAT }}
- name: Docker Build and Push
run: docker build --push -t us-east1-docker.pkg.dev/codepros/codepros/vault:${{ github.ref }} ./0.X/

0 comments on commit b38905a

Please sign in to comment.