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