Skip to content

Commit 0ca4a72

Browse files
author
Marco Santos
committed
ci: log in to container registry
1 parent 637a65e commit 0ca4a72

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ jobs:
3030
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
3131
restore-keys: |
3232
${{ runner.os }}-go-
33+
-
34+
name: Login to GitHub Container Registry
35+
uses: docker/login-action@v2
36+
with:
37+
registry: ghcr.io
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
3340
-
3441
name: Run GoReleaser
3542
uses: goreleaser/goreleaser-action@v2

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ dockers:
3131
-
3232
id: gitlab-code-quality
3333
image_templates:
34-
- "ghcr.io/loq9/gitlab-code-quality:{{ .Tag }}"
35-
- "ghcr.io/loq9/gitlab-code-quality:latest"
34+
- "ghcr.io/loq9/{{ .ProjectName }}:{{ .Tag }}"
35+
- "ghcr.io/loq9/{{ .ProjectName }}:latest"
3636
dockerfile: "Dockerfile.minimal"

0 commit comments

Comments
 (0)