revert 32bit bins (#4977)

This commit is contained in:
DmitriyLewen
2023-08-13 13:32:08 +06:00
committed by GitHub
parent fc959fc57f
commit 4e1316c37f
2 changed files with 8 additions and 0 deletions

View File

@@ -7,12 +7,14 @@ cd trivy-repo/deb
for release in ${DEBIAN_RELEASES[@]} ${UBUNTU_RELEASES[@]}; do
echo "Removing deb package of $release"
reprepro -A i386 remove $release trivy
reprepro -A amd64 remove $release trivy
reprepro -A arm64 remove $release trivy
done
for release in ${DEBIAN_RELEASES[@]} ${UBUNTU_RELEASES[@]}; do
echo "Adding deb package to $release"
reprepro includedeb $release ../../dist/*Linux-32bit.deb
reprepro includedeb $release ../../dist/*Linux-64bit.deb
reprepro includedeb $release ../../dist/*Linux-ARM64.deb
done

View File

@@ -12,6 +12,8 @@ builds:
goos:
- linux
goarch:
- 386
- arm
- amd64
- arm64
- s390x
@@ -31,6 +33,7 @@ builds:
- freebsd
goarch:
# modernc.org/sqlite doesn't support freebsd/arm64, etc.
- 386
- amd64
- id: build-macos
main: cmd/trivy/main.go
@@ -60,6 +63,7 @@ builds:
goos:
- windows
goarch:
# modernc.org/sqlite doesn't support windows/386 and windows/arm, etc.
- amd64
goarm:
- 7
@@ -88,6 +92,7 @@ nfpms:
{{- else if eq .Os "dragonfly" }}DragonFlyBSD
{{- else}}{{- title .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
@@ -112,6 +117,7 @@ archives:
{{- 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