Skip to content

Commit

Permalink
build(evrys): login into ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaba505 committed Oct 13, 2022
1 parent a06f41a commit db7fcfe
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,19 @@ jobs:
- name: Test
run: go test -v -race -cover ./...

- uses: goreleaser/goreleaser-action@v2
- name: Login to GitHub Container Registry
id: registry_login
if: startsWith(github.ref, 'refs/tags/')
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: goreleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')
needs: registry_login
with:
distribution: goreleaser
version: latest
Expand Down

0 comments on commit db7fcfe

Please sign in to comment.