Skip to content

Commit

Permalink
test revert 32 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Aug 10, 2023
1 parent f105279 commit 2cfbe22
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 88 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/reusable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ jobs:
username: ${{ env.GH_USER }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to ECR
uses: docker/login-action@v2
with:
registry: public.ecr.aws
username: ${{ secrets.ECR_ACCESS_KEY_ID }}
password: ${{ secrets.ECR_SECRET_ACCESS_KEY }}

- name: Checkout code
uses: actions/checkout@v3.5.3
with:
Expand Down
2 changes: 2 additions & 0 deletions ci/deploy-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
148 changes: 67 additions & 81 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ builds:
goos:
- linux
goarch:
- 386
- arm
- amd64
- arm64
- s390x
Expand All @@ -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
Expand Down Expand Up @@ -60,6 +63,7 @@ builds:
goos:
- windows
goarch:
# modernc.org/sqlite doesn't support windows/386 and windows/arm, etc.
- amd64
goarm:
- 7
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -128,7 +134,7 @@ archives:
brews:
-
tap:
owner: aquasecurity
owner: dmitriylewen
name: homebrew-trivy
homepage: "https://github.com/aquasecurity/trivy"
description: "Scanner for vulnerabilities in container images, file systems, and Git repositories, as well as for configuration issues"
Expand All @@ -137,12 +143,10 @@ brews:
dockers:
- image_templates:
- "docker.io/aquasec/trivy:{{ .Version }}-amd64"
- "docker.io/aquasec/trivy:latest-amd64"
- "ghcr.io/aquasecurity/trivy:{{ .Version }}-amd64"
- "ghcr.io/aquasecurity/trivy:latest-amd64"
- "public.ecr.aws/aquasecurity/trivy:latest-amd64"
- "public.ecr.aws/aquasecurity/trivy:{{ .Version }}-amd64"
- "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
Expand All @@ -160,14 +164,12 @@ dockers:
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/trivy/v{{ .Version }}/"
- "--platform=linux/amd64"
extra_files:
- contrib/
- contrib/
- image_templates:
- "docker.io/aquasec/trivy:{{ .Version }}-arm64"
- "docker.io/aquasec/trivy:latest-arm64"
- "ghcr.io/aquasecurity/trivy:{{ .Version }}-arm64"
- "ghcr.io/aquasecurity/trivy:latest-arm64"
- "public.ecr.aws/aquasecurity/trivy:latest-arm64"
- "public.ecr.aws/aquasecurity/trivy:{{ .Version }}-arm64"
- "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
Expand All @@ -187,12 +189,10 @@ dockers:
extra_files:
- contrib/
- image_templates:
- "docker.io/aquasec/trivy:{{ .Version }}-s390x"
- "docker.io/aquasec/trivy:latest-s390x"
- "ghcr.io/aquasecurity/trivy:{{ .Version }}-s390x"
- "ghcr.io/aquasecurity/trivy:latest-s390x"
- "public.ecr.aws/aquasecurity/trivy:latest-s390x"
- "public.ecr.aws/aquasecurity/trivy:{{ .Version }}-s390x"
- "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
Expand All @@ -212,12 +212,10 @@ dockers:
extra_files:
- contrib/
- image_templates:
- "docker.io/aquasec/trivy:{{ .Version }}-ppc64le"
- "docker.io/aquasec/trivy:latest-ppc64le"
- "ghcr.io/aquasecurity/trivy:{{ .Version }}-ppc64le"
- "ghcr.io/aquasecurity/trivy:latest-ppc64le"
- "public.ecr.aws/aquasecurity/trivy:latest-ppc64le"
- "public.ecr.aws/aquasecurity/trivy:{{ .Version }}-ppc64le"
- "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
Expand All @@ -238,66 +236,54 @@ dockers:
- contrib/

docker_manifests:
- name_template: 'aquasec/trivy:{{ .Version }}'
image_templates:
- 'aquasec/trivy:{{ .Version }}-amd64'
- 'aquasec/trivy:{{ .Version }}-arm64'
- 'aquasec/trivy:{{ .Version }}-s390x'
- 'aquasec/trivy:{{ .Version }}-ppc64le'
- name_template: 'ghcr.io/aquasecurity/trivy:{{ .Version }}'
image_templates:
- 'ghcr.io/aquasecurity/trivy:{{ .Version }}-amd64'
- 'ghcr.io/aquasecurity/trivy:{{ .Version }}-arm64'
- 'ghcr.io/aquasecurity/trivy:{{ .Version }}-s390x'
- 'ghcr.io/aquasecurity/trivy:{{ .Version }}-ppc64le'
- name_template: 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}'
- name_template: 'dmitriylewen/trivy:{{ .Version }}'
image_templates:
- 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}-amd64'
- 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}-arm64'
- 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}-s390x'
- 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}-ppc64le'
- name_template: 'aquasec/trivy:latest'
- '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:
- 'aquasec/trivy:{{ .Version }}-amd64'
- 'aquasec/trivy:{{ .Version }}-arm64'
- 'aquasec/trivy:{{ .Version }}-s390x'
- 'aquasec/trivy:{{ .Version }}-ppc64le'
- name_template: 'ghcr.io/aquasecurity/trivy:latest'
- '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:
- 'ghcr.io/aquasecurity/trivy:{{ .Version }}-amd64'
- 'ghcr.io/aquasecurity/trivy:{{ .Version }}-arm64'
- 'ghcr.io/aquasecurity/trivy:{{ .Version }}-s390x'
- 'ghcr.io/aquasecurity/trivy:{{ .Version }}-ppc64le'
- name_template: 'public.ecr.aws/aquasecurity/trivy:latest'
- '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:
- 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}-amd64'
- 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}-arm64'
- 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}-s390x'
- 'public.ecr.aws/aquasecurity/trivy:{{ .Version }}-ppc64le'
- '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:
- COSIGN_EXPERIMENTAL=1
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
args:
- "sign-blob"
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: all
output: true
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
args:
- "sign-blob"
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: all
output: true

docker_signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
artifacts: manifests
output: true
args:
- 'sign'
- '${artifact}'
- '--yes'
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
artifacts: manifests
output: true
args:
- 'sign'
- '${artifact}'
- '--yes'

0 comments on commit 2cfbe22

Please sign in to comment.