Skip to content

Commit d38246e

Browse files
committed
ci: add docker login to release workflow
1 parent 99b1b92 commit d38246e

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,28 @@ on:
77

88
permissions:
99
contents: write
10+
packages: write
1011

1112
jobs:
12-
goreleaser:
13+
release:
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Checkout
1617
uses: actions/checkout@v4
1718
with:
1819
fetch-depth: 0
20+
1921
- name: Set up Go
2022
uses: actions/setup-go@v5
21-
- name: Run GoReleaser
23+
24+
- name: Login to GitHub Container Registry
25+
uses: docker/login-action@v3
26+
with:
27+
registry: ghcr.io
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Run GoReleaser to build and release
2232
uses: goreleaser/goreleaser-action@v6
2333
with:
2434
distribution: goreleaser

0 commit comments

Comments
 (0)