Skip to content

Commit

Permalink
Merge pull request #69 from harkeet/harkeet/add_arm_support
Browse files Browse the repository at this point in the history
GoReleaser build multi arch images
  • Loading branch information
marcsauter authored Jan 5, 2023
2 parents 93ade48 + b4c108e commit 6be57e6
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ builds:
- linux
goarch:
- amd64
- arm64
main: ./cmd/synchronizer/
binary: synchronizer
env:
Expand All @@ -18,6 +19,7 @@ builds:
- linux
goarch:
- amd64
- arm64
main: ./cmd/authenticator/
binary: authenticator
env:
Expand All @@ -27,6 +29,7 @@ builds:
- linux
goarch:
- amd64
- arm64
main: ./cmd/token-renewer/
binary: token-renewer
env:
Expand All @@ -49,6 +52,25 @@ dockers:
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- synchronizer
goos: linux
use: buildx
goarch: arm64
dockerfile: packaging/docker/synchronizer/Dockerfile
image_templates:
- postfinance/{{ .ProjectName }}-synchronizer:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64
- postfinance/{{ .ProjectName }}-synchronizer:{{ .Major }}.{{ .Minor }}-arm64
- postfinance/{{ .ProjectName }}-synchronizer:latest-arm64
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- authenticator
goos: linux
Expand All @@ -66,6 +88,25 @@ dockers:
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- authenticator
goos: linux
use: buildx
goarch: arm64
dockerfile: packaging/docker/authenticator/Dockerfile
image_templates:
- postfinance/{{ .ProjectName }}-authenticator:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64
- postfinance/{{ .ProjectName }}-authenticator:{{ .Major }}.{{ .Minor }}-arm64
- postfinance/{{ .ProjectName }}-authenticator:latest-arm64
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- token-renewer
goos: linux
Expand All @@ -83,3 +124,22 @@ dockers:
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull
- ids:
- token-renewer
goos: linux
use: buildx
goarch: arm64
dockerfile: packaging/docker/token-renewer/Dockerfile
image_templates:
- postfinance/{{ .ProjectName }}-token-renewer:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64
- postfinance/{{ .ProjectName }}-token-renewer:{{ .Major }}.{{ .Minor }}-arm64
- postfinance/{{ .ProjectName }}-token-renewer:latest-arm64
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.source={{ .GitURL }}
- --label=org.opencontainers.image.url={{ .GitURL }}
- --label=org.opencontainers.image.vendor=PostFinance AG
- --label=org.opencontainers.image.version={{ .Version }}
- --pull

0 comments on commit 6be57e6

Please sign in to comment.