diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 31efdcb0f..fe00111cb 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 @@ -155,11 +156,25 @@ dockers: - "--build-arg=VCS_REF={{.FullCommit}}" - "--build-arg=VCS_URL={{.GitURL}}" + - image_templates: + - anchore/syft:{{.Tag}}-ppc64le + - ghcr.io/anchore/syft:{{.Tag}}-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:latest image_templates: - anchore/syft:{{.Tag}} - anchore/syft:{{.Tag}}-arm64v8 + - anchore/syft:{{.Tag}}-ppc64le - name_template: anchore/syft:debug - anchore/syft:{{.Tag}}-debug @@ -169,11 +184,13 @@ docker_manifests: image_templates: - anchore/syft:{{.Tag}} - anchore/syft:{{.Tag}}-arm64v8 + - anchore/syft:{{.Tag}}-ppc64le - name_template: ghcr.io/anchore/syft:latest image_templates: - ghcr.io/anchore/syft:{{.Tag}} - ghcr.io/anchore/syft:{{.Tag}}-arm64v8 + - ghcr.io/anchore/syft:{{.Tag}}-ppc64le - name_template: ghcr.io/anchore/syft:debug image_templates: @@ -184,3 +201,4 @@ docker_manifests: image_templates: - ghcr.io/anchore/syft:{{.Tag}} - ghcr.io/anchore/syft:{{.Tag}}-arm64v8 + - ghcr.io/anchore/syft:{{.Tag}}-ppc64le diff --git a/test/install/1_download_snapshot_asset_test.sh b/test/install/1_download_snapshot_asset_test.sh index 71623755b..0285a43f9 100755 --- a/test/install/1_download_snapshot_asset_test.sh +++ b/test/install/1_download_snapshot_asset_test.sh @@ -71,6 +71,10 @@ run_test_case test_positive_snapshot_download_asset "linux" "amd64" "deb" run_test_case test_positive_snapshot_download_asset "linux" "arm64" "tar.gz" run_test_case test_positive_snapshot_download_asset "linux" "arm64" "rpm" run_test_case test_positive_snapshot_download_asset "linux" "arm64" "deb" +run_test_case test_positive_snapshot_download_asset "linux" "ppc64le" "tar.gz" +run_test_case test_positive_snapshot_download_asset "linux" "ppc64le" "rpm" +run_test_case test_positive_snapshot_download_asset "linux" "ppc64le" "deb" + run_test_case test_positive_snapshot_download_asset "darwin" "amd64" "tar.gz" run_test_case test_positive_snapshot_download_asset "darwin" "arm64" "tar.gz" run_test_case test_positive_snapshot_download_asset "windows" "amd64" "zip" diff --git a/test/install/3_install_asset_test.sh b/test/install/3_install_asset_test.sh index 1d699ae42..7fd83369c 100755 --- a/test/install/3_install_asset_test.sh +++ b/test/install/3_install_asset_test.sh @@ -76,6 +76,7 @@ trap 'teardown_snapshot_server ${worker_pid}' EXIT # exercise all possible archive assets (not rpm/deb/dmg) against a snapshot build run_test_case test_positive_snapshot_install_asset "linux" "amd64" "tar.gz" run_test_case test_positive_snapshot_install_asset "linux" "arm64" "tar.gz" +run_test_case test_positive_snapshot_install_asset "linux" "ppc64le" "tar.gz" run_test_case test_positive_snapshot_install_asset "darwin" "amd64" "tar.gz" run_test_case test_positive_snapshot_install_asset "darwin" "arm64" "tar.gz" run_test_case test_positive_snapshot_install_asset "windows" "amd64" "zip"