From 19dfefa4053d2630b8cc2a2b387717873bbe676f Mon Sep 17 00:00:00 2001 From: skuethe <56306041+skuethe@users.noreply.github.com> Date: Thu, 24 Feb 2022 14:45:09 +0100 Subject: [PATCH] feat: add linux/s390x builds Signed-off-by: skuethe <56306041+skuethe@users.noreply.github.com> --- .goreleaser.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 59f4aff9..24dae90f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,6 +14,7 @@ builds: - amd64 - arm64 - arm + - s390x goarm: - 7 - <<: *build_defaults @@ -158,17 +159,35 @@ dockers: - "--label=org.opencontainers.image.version={{ .Version }}" - "--label=org.opencontainers.image.source={{ .GitURL }}" - "--platform=linux/arm/v7" +- image_templates: + - 'fluxcd/flux-cli:{{ .Tag }}-s390x' + - 'ghcr.io/fluxcd/flux-cli:{{ .Tag }}-s390x' + dockerfile: Dockerfile + use: buildx + goos: linux + goarch: s390x + build_flag_templates: + - "--pull" + - "--build-arg=ARCH=linux/s390x" + - "--label=org.opencontainers.image.created={{ .Date }}" + - "--label=org.opencontainers.image.name={{ .ProjectName }}" + - "--label=org.opencontainers.image.revision={{ .FullCommit }}" + - "--label=org.opencontainers.image.version={{ .Version }}" + - "--label=org.opencontainers.image.source={{ .GitURL }}" + - "--platform=linux/s390x" docker_manifests: - name_template: 'fluxcd/flux-cli:{{ .Tag }}' image_templates: - 'fluxcd/flux-cli:{{ .Tag }}-amd64' - 'fluxcd/flux-cli:{{ .Tag }}-arm64' - 'fluxcd/flux-cli:{{ .Tag }}-arm' + - 'fluxcd/flux-cli:{{ .Tag }}-s390x' - name_template: 'ghcr.io/fluxcd/flux-cli:{{ .Tag }}' image_templates: - 'ghcr.io/fluxcd/flux-cli:{{ .Tag }}-amd64' - 'ghcr.io/fluxcd/flux-cli:{{ .Tag }}-arm64' - 'ghcr.io/fluxcd/flux-cli:{{ .Tag }}-arm' + - 'ghcr.io/fluxcd/flux-cli:{{ .Tag }}-s390x' docker_signs: - cmd: cosign env: