Skip to content

Commit

Permalink
Use buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Petrausch committed Feb 3, 2021
1 parent 1eae3e5 commit fd1e70f
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ dockers:
- dockerfile: release/Dockerfile.scratch
goos: linux
goarch: amd64
use_buildx: true
build_flag_templates:
- "--platform=linux/amd64"
image_templates:
- "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64"
- "hikhvar/mqtt2prometheus:latest-amd64"
Expand All @@ -87,6 +90,9 @@ dockers:
- dockerfile: release/Dockerfile.scratch
goos: linux
goarch: arm64
use_buildx: true
build_flag_templates:
- "--platform=linux/arm64"
image_templates:
- "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64"
- "hikhvar/mqtt2prometheus:latest-arm64"
Expand All @@ -98,14 +104,17 @@ dockers:
- dockerfile: release/Dockerfile.scratch
goos: linux
goarch: arm
goarm: 5
goarm: 6
use_buildx: true
build_flag_templates:
- "--platform=linux/arm/v6"
image_templates:
- "hikhvar/mqtt2prometheus:{{ .Tag }}-arm5"
- "hikhvar/mqtt2prometheus:latest-arm5"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm5"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm5"
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm5"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-arm5"
- "hikhvar/mqtt2prometheus:{{ .Tag }}-arm6"
- "hikhvar/mqtt2prometheus:latest-arm6"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}-arm6"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:latest-arm6"
- "ghcr.io/hikhvar/mqtt2prometheus:{{ .Tag }}-arm6"
- "ghcr.io/hikhvar/mqtt2prometheus:latest-arm6"

# .goreleaser.yml
docker_manifests:
Expand All @@ -120,4 +129,4 @@ docker_manifests:
image_templates:
- "hikhvar/mqtt2prometheus:{{ .Tag }}-amd64"
- "hikhvar/mqtt2prometheus:{{ .Tag }}-arm64"
- "hikhvar/mqtt2prometheus:{{ .Tag }}-arm5"
- "hikhvar/mqtt2prometheus:{{ .Tag }}-arm6"

0 comments on commit fd1e70f

Please sign in to comment.