Skip to content

Commit

Permalink
test: build only arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Apr 27, 2024
1 parent 9f4ba83 commit 8b1cb33
Showing 1 changed file with 0 additions and 202 deletions.
202 changes: 0 additions & 202 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,66 +12,10 @@ builds:
goos:
- linux
goarch:
- 386
- arm
- amd64
- arm64
- s390x
- ppc64le
goarm:
- 7
- id: build-bsd
main: cmd/trivy/main.go
binary: trivy
ldflags:
- -s -w
- "-extldflags '-static'"
- -X github.com/aquasecurity/trivy/pkg/version.ver={{.Version}}
env:
- CGO_ENABLED=0
goos:
- freebsd
goarch:
# modernc.org/sqlite doesn't support freebsd/arm64, etc.
- 386
- amd64
- id: build-macos
main: cmd/trivy/main.go
binary: trivy
ldflags:
- -s -w
- "-extldflags '-static'"
- -X github.com/aquasecurity/trivy/pkg/version.ver={{.Version}}
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
- arm64
goarm:
- 7
- id: build-windows
main: cmd/trivy/main.go
binary: trivy
ldflags:
- -s -w
- "-extldflags '-static'"
- -X github.com/aquasecurity/trivy/pkg/version.ver={{.Version}}
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
# modernc.org/sqlite doesn't support windows/386 and windows/arm, etc.
- amd64
goarm:
- 7

release:
extra_files:
- glob: ./bom.json
discussion_category_name: Announcements

nfpms:
-
Expand Down Expand Up @@ -104,152 +48,6 @@ nfpms:
signature:
key_file: '{{ .Env.GPG_FILE }}'

archives:
- id: archive
format: tar.gz
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- if eq .Os "darwin" }}macOS
{{- else if eq .Os "linux" }}Linux
{{- else if eq .Os "openbsd" }}OpenBSD
{{- else if eq .Os "netbsd" }}NetBSD
{{- else if eq .Os "freebsd" }}FreeBSD
{{- else if eq .Os "dragonfly" }}DragonFlyBSD
{{- else}}{{- .Os }}{{ end }}-
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "386" }}32bit
{{- else if eq .Arch "arm" }}ARM
{{- else if eq .Arch "arm64" }}ARM64
{{- else if eq .Arch "ppc64le" }}PPC64LE
{{- else }}{{ .Arch }}{{ end }}
files:
- README.md
- LICENSE
- contrib/*.tpl
format_overrides:
- goos: windows
format: zip

dockers:
- image_templates:
- "docker.io/dmitriylewen/trivy:{{ .Version }}-amd64"
- "docker.io/dmitriylewen/trivy:latest-amd64"
- "ghcr.io/dmitriylewen/trivy:{{ .Version }}-amd64"
- "ghcr.io/dmitriylewen/trivy:latest-amd64"
use: buildx
goos: linux
goarch: amd64
ids:
- build-linux
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description=A Fast Vulnerability Scanner for Containers"
- "--label=org.opencontainers.image.vendor=Aqua Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/aquasecurity/trivy"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.url=https://www.aquasec.com/products/trivy/"
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/trivy/v{{ .Version }}/"
- "--platform=linux/amd64"
extra_files:
- contrib/
- image_templates:
- "docker.io/dmitriylewen/trivy:{{ .Version }}-arm64"
- "docker.io/dmitriylewen/trivy:latest-arm64"
- "ghcr.io/dmitriylewen/trivy:{{ .Version }}-arm64"
- "ghcr.io/dmitriylewen/trivy:latest-arm64"
use: buildx
goos: linux
goarch: arm64
ids:
- build-linux
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description=A Fast Vulnerability Scanner for Containers"
- "--label=org.opencontainers.image.vendor=Aqua Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/aquasecurity/trivy"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.url=https://www.aquasec.com/products/trivy/"
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/trivy/v{{ .Version }}/"
- "--platform=linux/arm64"
extra_files:
- contrib/
- image_templates:
- "docker.io/dmitriylewen/trivy:{{ .Version }}-s390x"
- "docker.io/dmitriylewen/trivy:latest-s390x"
- "ghcr.io/dmitriylewen/trivy:{{ .Version }}-s390x"
- "ghcr.io/dmitriylewen/trivy:latest-s390x"
use: buildx
goos: linux
goarch: s390x
ids:
- build-linux
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description=A Fast Vulnerability Scanner for Containers"
- "--label=org.opencontainers.image.vendor=Aqua Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/aquasecurity/trivy"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.url=https://www.aquasec.com/products/trivy/"
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/trivy/v{{ .Version }}/"
- "--platform=linux/s390x"
extra_files:
- contrib/
- image_templates:
- "docker.io/dmitriylewen/trivy:{{ .Version }}-ppc64le"
- "docker.io/dmitriylewen/trivy:latest-ppc64le"
- "ghcr.io/dmitriylewen/trivy:{{ .Version }}-ppc64le"
- "ghcr.io/dmitriylewen/trivy:latest-ppc64le"
use: buildx
goos: linux
goarch: ppc64le
ids:
- build-linux
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.description=A Fast Vulnerability Scanner for Containers"
- "--label=org.opencontainers.image.vendor=Aqua Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/aquasecurity/trivy"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.url=https://www.aquasec.com/products/trivy/"
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/trivy/v{{ .Version }}/"
- "--platform=linux/ppc64le"
extra_files:
- contrib/

docker_manifests:
- name_template: 'dmitriylewen/trivy:{{ .Version }}'
image_templates:
- 'dmitriylewen/trivy:{{ .Version }}-amd64'
- 'dmitriylewen/trivy:{{ .Version }}-arm64'
- 'dmitriylewen/trivy:{{ .Version }}-s390x'
- 'dmitriylewen/trivy:{{ .Version }}-ppc64le'
- name_template: 'ghcr.io/dmitriylewen/trivy:{{ .Version }}'
image_templates:
- 'ghcr.io/dmitriylewen/trivy:{{ .Version }}-amd64'
- 'ghcr.io/dmitriylewen/trivy:{{ .Version }}-arm64'
- 'ghcr.io/dmitriylewen/trivy:{{ .Version }}-s390x'
- 'ghcr.io/dmitriylewen/trivy:{{ .Version }}-ppc64le'
- name_template: 'dmitriylewen/trivy:latest'
image_templates:
- 'dmitriylewen/trivy:{{ .Version }}-amd64'
- 'dmitriylewen/trivy:{{ .Version }}-arm64'
- 'dmitriylewen/trivy:{{ .Version }}-s390x'
- 'dmitriylewen/trivy:{{ .Version }}-ppc64le'
- name_template: 'ghcr.io/dmitriylewen/trivy:latest'
image_templates:
- 'ghcr.io/dmitriylewen/trivy:{{ .Version }}-amd64'
- 'ghcr.io/dmitriylewen/trivy:{{ .Version }}-arm64'
- 'ghcr.io/dmitriylewen/trivy:{{ .Version }}-s390x'
- 'ghcr.io/dmitriylewen/trivy:{{ .Version }}-ppc64le'

signs:
- cmd: cosign
env:
Expand Down

0 comments on commit 8b1cb33

Please sign in to comment.