Skip to content

Commit c95cc5a

Browse files
committed
Fix ghcr name, add Docker login step
1 parent 2527923 commit c95cc5a

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
-
2222
name: Fetch all tags
2323
run: git fetch --force --tags
24+
- name: Docker Login
25+
uses: docker/login-action@v1
26+
with:
27+
registry: ghcr.io
28+
username: ${{ github.repository_owner }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
2430
-
2531
name: Set up Go
2632
uses: actions/setup-go@v2

.goreleaser.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ archives:
2121
amd64: x86_64
2222
dockers:
2323
- image_templates:
24-
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
24+
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
2525
dockerfile: Dockerfile
2626
build_flag_templates:
2727
- --platform=linux/amd64
@@ -34,7 +34,7 @@ dockers:
3434
- --label=org.opencontainers.image.revision={{ .FullCommit }}
3535
- --label=org.opencontainers.image.licenses=GPL-3.0
3636
- image_templates:
37-
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
37+
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
3838
goarch: arm64
3939
dockerfile: Dockerfile
4040
build_flag_templates:
@@ -48,14 +48,14 @@ dockers:
4848
- --label=org.opencontainers.image.revision={{ .FullCommit }}
4949
- --label=org.opencontainers.image.licenses=GPL-3.0
5050
docker_manifests:
51-
- name_template: ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}
51+
- name_template: ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}
5252
image_templates:
53-
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
54-
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
55-
- name_template: ghcr.io/Flowpack/{{ .ProjectName }}:latest
53+
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
54+
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
55+
- name_template: ghcr.io/flowpack/{{ .ProjectName }}:latest
5656
image_templates:
57-
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
58-
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
57+
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
58+
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
5959
checksum:
6060
name_template: 'checksums.txt'
6161
snapshot:

0 commit comments

Comments
 (0)