Skip to content

Commit

Permalink
ci: add ghcr.io login so goreleaser can push docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Jul 20, 2022
1 parent 26091cb commit a9b0be2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ jobs:
run: |
go mod tidy
go test -v ./...
- name: Docker Login (ghcr.io)
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_TAGGER_GORELEASER_DEPLOY_PAT }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TAGGER_GORELEASER_DEPLOY_PAT }}

0 comments on commit a9b0be2

Please sign in to comment.