Skip to content

Commit

Permalink
Fix ghcr name, add Docker login step
Browse files Browse the repository at this point in the history
  • Loading branch information
hlubek committed Apr 7, 2022
1 parent 2527923 commit c95cc5a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
-
name: Fetch all tags
run: git fetch --force --tags
- name: Docker Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up Go
uses: actions/setup-go@v2
Expand Down
16 changes: 8 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ archives:
amd64: x86_64
dockers:
- image_templates:
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
dockerfile: Dockerfile
build_flag_templates:
- --platform=linux/amd64
Expand All @@ -34,7 +34,7 @@ dockers:
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=GPL-3.0
- image_templates:
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
goarch: arm64
dockerfile: Dockerfile
build_flag_templates:
Expand All @@ -48,14 +48,14 @@ dockers:
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=GPL-3.0
docker_manifests:
- name_template: ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}
- name_template: ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
- name_template: ghcr.io/Flowpack/{{ .ProjectName }}:latest
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
- name_template: ghcr.io/flowpack/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/Flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/flowpack/{{ .ProjectName }}:{{ .Version }}-arm64v8
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit c95cc5a

Please sign in to comment.