2021-03-11 17:41:10 +00:00
|
|
|
release:
|
|
|
|
prerelease: auto
|
|
|
|
draft: true
|
|
|
|
|
2022-02-04 17:41:37 +00:00
|
|
|
env:
|
|
|
|
# required to support multi architecture docker builds
|
|
|
|
- DOCKER_CLI_EXPERIMENTAL=enabled
|
|
|
|
|
2021-03-11 17:41:10 +00:00
|
|
|
builds:
|
2022-02-04 17:41:37 +00:00
|
|
|
- id: linux-build
|
|
|
|
binary: syft
|
2021-03-11 17:41:10 +00:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
2022-01-10 19:52:31 +00:00
|
|
|
- arm64
|
2022-02-04 17:41:37 +00:00
|
|
|
# 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
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
ldflags: &build-ldflags |
|
2021-03-11 17:41:10 +00:00
|
|
|
-w
|
|
|
|
-s
|
|
|
|
-extldflags '-static'
|
|
|
|
-X github.com/anchore/syft/internal/version.version={{.Version}}
|
|
|
|
-X github.com/anchore/syft/internal/version.gitCommit={{.Commit}}
|
|
|
|
-X github.com/anchore/syft/internal/version.buildDate={{.Date}}
|
2022-02-04 17:41:37 +00:00
|
|
|
-X github.com/anchore/syft/internal/version.gitDescription={{.Summary}}
|
2021-10-26 13:42:35 +00:00
|
|
|
|
2022-02-04 17:41:37 +00:00
|
|
|
- id: darwin-build
|
|
|
|
binary: syft
|
2021-03-11 17:41:10 +00:00
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
2021-10-26 13:42:35 +00:00
|
|
|
- arm64
|
2022-02-04 17:41:37 +00:00
|
|
|
mod_timestamp: *build-timestamp
|
|
|
|
env: *build-env
|
|
|
|
ldflags: *build-ldflags
|
|
|
|
|
|
|
|
- id: windows-build
|
|
|
|
binary: syft
|
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
mod_timestamp: *build-timestamp
|
|
|
|
env: *build-env
|
|
|
|
ldflags: *build-ldflags
|
2021-03-11 17:41:10 +00:00
|
|
|
|
|
|
|
archives:
|
2022-02-04 17:41:37 +00:00
|
|
|
- id: linux-archives
|
|
|
|
builds:
|
|
|
|
- linux-build
|
2022-01-10 19:52:31 +00:00
|
|
|
|
2022-02-04 17:41:37 +00:00
|
|
|
# note: the signing process is depending on tar.gz archives. If this format changes then .github/scripts/apple-signing/*.sh will need to be adjusted
|
|
|
|
- id: darwin-archives
|
2021-03-11 17:41:10 +00:00
|
|
|
builds:
|
2022-02-04 17:41:37 +00:00
|
|
|
- darwin-build
|
|
|
|
|
|
|
|
- id: windows-archives
|
|
|
|
format: zip
|
|
|
|
builds:
|
|
|
|
- windows-build
|
2021-03-11 17:41:10 +00:00
|
|
|
|
|
|
|
signs:
|
2022-02-04 17:41:37 +00:00
|
|
|
- artifacts: archive
|
2021-03-11 17:41:10 +00:00
|
|
|
ids:
|
2022-02-04 17:41:37 +00:00
|
|
|
- darwin-archives
|
|
|
|
signature: "${artifact}"
|
|
|
|
cmd: ./.github/scripts/apple-signing/run.sh
|
2021-03-11 17:41:10 +00:00
|
|
|
args:
|
2022-02-04 17:41:37 +00:00
|
|
|
- "${artifact}"
|
2021-03-11 17:41:10 +00:00
|
|
|
- "{{ .IsSnapshot }}"
|
|
|
|
|
|
|
|
nfpms:
|
|
|
|
- license: "Apache 2.0"
|
|
|
|
maintainer: "Anchore, Inc"
|
|
|
|
homepage: &website "https://github.com/anchore/syft"
|
|
|
|
description: &description "A tool that generates a Software Bill Of Materials (SBOM) from container images and filesystems"
|
|
|
|
formats:
|
|
|
|
- rpm
|
|
|
|
- deb
|
|
|
|
|
|
|
|
brews:
|
|
|
|
- tap:
|
|
|
|
owner: anchore
|
|
|
|
name: homebrew-syft
|
2022-01-10 19:52:31 +00:00
|
|
|
ids:
|
2022-02-04 17:41:37 +00:00
|
|
|
- darwin-archives
|
|
|
|
- linux-archives
|
2021-03-11 17:41:10 +00:00
|
|
|
homepage: *website
|
|
|
|
description: *description
|
2022-01-10 19:52:31 +00:00
|
|
|
license: "Apache License 2.0"
|
2021-03-11 19:23:31 +00:00
|
|
|
|
2021-09-13 17:06:23 +00:00
|
|
|
dockers:
|
2021-10-26 13:42:35 +00:00
|
|
|
- image_templates:
|
2021-09-13 17:06:23 +00:00
|
|
|
- "anchore/syft:latest"
|
2021-10-26 13:42:35 +00:00
|
|
|
- "anchore/syft:{{ .Tag }}-amd64"
|
|
|
|
- "anchore/syft:v{{ .Major }}-amd64"
|
|
|
|
- "anchore/syft:v{{ .Major }}.{{ .Minor }}-amd64"
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
use: buildx
|
2021-09-13 17:06:23 +00:00
|
|
|
build_flag_templates:
|
2021-10-26 13:42:35 +00:00
|
|
|
- "--platform=linux/amd64"
|
2021-09-13 17:06:23 +00:00
|
|
|
- "--build-arg=BUILD_DATE={{.Date}}"
|
|
|
|
- "--build-arg=BUILD_VERSION={{.Version}}"
|
|
|
|
- "--build-arg=VCS_REF={{.FullCommit}}"
|
|
|
|
- "--build-arg=VCS_URL={{.GitURL}}"
|
2021-10-26 13:42:35 +00:00
|
|
|
|
|
|
|
- image_templates:
|
|
|
|
- "anchore/syft:{{ .Tag }}-arm64v8"
|
|
|
|
- "anchore/syft:v{{ .Major }}-arm64v8"
|
|
|
|
- "anchore/syft:v{{ .Major }}.{{ .Minor }}-arm64v8"
|
|
|
|
goarch: arm64
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
use: buildx
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm64/v8"
|
|
|
|
- "--build-arg=BUILD_DATE={{.Date}}"
|
|
|
|
- "--build-arg=BUILD_VERSION={{.Version}}"
|
|
|
|
- "--build-arg=VCS_REF={{.FullCommit}}"
|
|
|
|
- "--build-arg=VCS_URL={{.GitURL}}"
|
|
|
|
|
|
|
|
docker_manifests:
|
2021-10-28 19:05:34 +00:00
|
|
|
- name_template: anchore/syft:{{ .Tag }}
|
2021-10-26 13:42:35 +00:00
|
|
|
image_templates:
|
2021-10-28 17:37:22 +00:00
|
|
|
- anchore/syft:{{ .Tag }}-amd64
|
2021-10-26 13:42:35 +00:00
|
|
|
- anchore/syft:v{{ .Major }}-amd64
|
|
|
|
- anchore/syft:v{{ .Major }}.{{ .Minor }}-amd64
|
2021-10-28 17:37:22 +00:00
|
|
|
- anchore/syft:{{ .Tag }}-arm64v8
|
2021-10-26 13:42:35 +00:00
|
|
|
- anchore/syft:v{{ .Major }}-arm64v8
|
|
|
|
- anchore/syft:v{{ .Major }}.{{ .Minor }}-arm64v8
|
|
|
|
- name_template: anchore/syft:latest
|
|
|
|
image_templates:
|
2021-10-28 17:37:22 +00:00
|
|
|
- anchore/syft:{{ .Tag }}-amd64
|
2021-10-26 13:42:35 +00:00
|
|
|
- anchore/syft:v{{ .Major }}-amd64
|
|
|
|
- anchore/syft:v{{ .Major }}.{{ .Minor }}-amd64
|
2021-10-28 19:41:39 +00:00
|
|
|
- anchore/syft:{{ .Tag }}-arm64v8
|
2021-10-26 13:42:35 +00:00
|
|
|
- anchore/syft:v{{ .Major }}-arm64v8
|
|
|
|
- anchore/syft:v{{ .Major }}.{{ .Minor }}-arm64v8
|