Skip to content

Commit

Permalink
Authenticate with Google Container Registry
Browse files Browse the repository at this point in the history
Authored-by: Mark Stokan <[email protected]>
  • Loading branch information
markstokan committed Jan 29, 2024
1 parent 514bfaf commit fbe2f3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- if: startsWith(github.ref, 'refs/tags/')
name: Login to GCR
uses: docker/login-action@v2
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.TAS_PPE_GCR_SERVICE_JSON_KEY }}

- if: startsWith(github.ref, 'refs/tags/')
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down

0 comments on commit fbe2f3c

Please sign in to comment.