Skip to content

Commit

Permalink
Added ppc64le support
Browse files Browse the repository at this point in the history
This PR will add ppc64le support
  • Loading branch information
mayurwaghmode committed Jul 13, 2022
1 parent 64b4852 commit baba69b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .goreleaser.yaml
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit baba69b

Please sign in to comment.