Skip to content

Commit

Permalink
feat: multiarch docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 22, 2024
1 parent 0ca9b8b commit 7f6c321
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,28 @@ brews:
name: repo
dockers:
- image_templates:
- "ghcr.io/natesales/q:{{ .Version }}"
- "ghcr.io/natesales/q:latest"
dockerfile: Dockerfile
- "ghcr.io/natesales/q:{{ .Version }}-amd64"
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=GPL-3.0-only
- image_templates:
- "ghcr.io/natesales/q:{{ .Version }}-arm64"
use: buildx
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=GPL-3.0-only
goarch: arm64
docker_manifests:
- name_template: "ghcr.io/natesales/q:{{ .Version }}"
image_templates:
- "ghcr.io/natesales/q:{{ .Version }}-amd64"
- "ghcr.io/natesales/q:{{ .Version }}-arm64"
- name_template: "ghcr.io/natesales/q:latest"
image_templates:
- "ghcr.io/natesales/q:{{ .Version }}-amd64"
- "ghcr.io/natesales/q:{{ .Version }}-arm64"

0 comments on commit 7f6c321

Please sign in to comment.