Skip to content

Commit 3e7b42c

Browse files
committed
ci: add login to docker registries to release yaml
Signed-off-by: Chris Privitere <[email protected]>
1 parent f3474b4 commit 3e7b42c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,29 @@ jobs:
1717
uses: actions/setup-go@v5
1818
with:
1919
go-version: 1.19
20+
- name: Login to ghcr.io registry
21+
uses: docker/login-action@v3
22+
with:
23+
registry: ghcr.io
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Log into DockerHub
27+
uses: docker/login-action@v3
28+
env:
29+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
30+
if: ${{ env.DOCKER_USERNAME != '' }}
31+
with:
32+
username: ${{ secrets.DOCKER_USERNAME }}
33+
password: ${{ secrets.DOCKER_PASSWORD }}
34+
- name: Log into quay.io
35+
uses: docker/login-action@v3
36+
env:
37+
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
38+
if: ${{ env.QUAY_USERNAME != '' }}
39+
with:
40+
registry: quay.io
41+
username: ${{ secrets.QUAY_USERNAME }}
42+
password: ${{ secrets.QUAY_PASSWORD }}
2043
- name: Run GoReleaser
2144
uses: goreleaser/goreleaser-action@v5
2245
with:

0 commit comments

Comments
 (0)