Skip to content

Commit

Permalink
Run docker login step
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieegan3 authored May 9, 2022
1 parent 6c3f6e4 commit 2933d9a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
push:
tags:
- "*"


permissions:
contents: read
packages: write

jobs:
goreleaser:
Expand All @@ -21,6 +26,11 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: "^1.17"
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser (PR)
uses: goreleaser/goreleaser-action@v2
if: "!startsWith(github.ref, 'refs/tags')" # runs on a PR
Expand All @@ -38,5 +48,5 @@ jobs:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2933d9a

Please sign in to comment.