From baba69bc95deb77b0babd59f53fec085abe5b563 Mon Sep 17 00:00:00 2001 From: Mayur Waghmode <42777188+mayurwaghmode@users.noreply.github.com> Date: Wed, 13 Jul 2022 12:31:32 +0530 Subject: [PATCH] Added ppc64le support This PR will add ppc64le support --- .goreleaser.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9ec9947e5b5..d10a9520022 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -19,6 +19,7 @@ builds: goarch: - amd64 - arm64 + - ppc64le # set the modified timestamp on the output binary to the git timestamp to ensure a reproducible build mod_timestamp: &build-timestamp '{{ .CommitTimestamp }}' env: &build-env @@ -132,21 +133,42 @@ dockers: - "--build-arg=BUILD_VERSION={{.Version}}" - "--build-arg=VCS_REF={{.FullCommit}}" - "--build-arg=VCS_URL={{.GitURL}}" + + - image_templates: + - "anchore/syft:{{ .Tag }}-ppc64le" + - "anchore/syft:v{{ .Major }}-ppc64le" + - "anchore/syft:v{{ .Major }}.{{ .Minor }}-ppc64le" + - "ghcr.io/anchore/syft:{{ .Tag }}-ppc64le" + - "ghcr.io/anchore/syft:v{{ .Major }}-ppc64le" + - "ghcr.io/anchore/syft:v{{ .Major }}.{{ .Minor }}-ppc64le" + goarch: ppc64le + dockerfile: Dockerfile + use: buildx + build_flag_templates: + - "--platform=linux/ppc64le" + - "--build-arg=BUILD_DATE={{.Date}}" + - "--build-arg=BUILD_VERSION={{.Version}}" + - "--build-arg=VCS_REF={{.FullCommit}}" + - "--build-arg=VCS_URL={{.GitURL}}" docker_manifests: - name_template: anchore/syft:{{ .Tag }} image_templates: - anchore/syft:v{{ .Major }}.{{ .Minor }}-amd64 - anchore/syft:v{{ .Major }}.{{ .Minor }}-arm64v8 + - anchore/syft:v{{ .Major }}.{{ .Minor }}-ppc64le - name_template: anchore/syft:latest image_templates: - anchore/syft:v{{ .Major }}.{{ .Minor }}-amd64 - anchore/syft:v{{ .Major }}.{{ .Minor }}-arm64v8 + - anchore/syft:v{{ .Major }}.{{ .Minor }}-ppc64le - name_template: ghcr.io/anchore/syft:{{ .Tag }} image_templates: - ghcr.io/anchore/syft:v{{ .Major }}.{{ .Minor }}-amd64 - ghcr.io/anchore/syft:v{{ .Major }}.{{ .Minor }}-arm64v8 + - ghcr.io/anchore/syft:v{{ .Major }}.{{ .Minor }}-ppc64le - name_template: ghcr.io/anchore/syft:latest image_templates: - ghcr.io/anchore/syft:v{{ .Major }}.{{ .Minor }}-amd64 - ghcr.io/anchore/syft:v{{ .Major }}.{{ .Minor }}-arm64v8 + - ghcr.io/anchore/syft:v{{ .Major }}.{{ .Minor }}-ppc64le