From 261fc4210ba22a39a893fc749e65a9260d21bbf9 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Wed, 20 Dec 2023 11:06:26 +0600 Subject: [PATCH] refactor: remove build of images for release --- .github/workflows/reusable-release.yaml | 7 - goreleaser.yml | 164 +----------------------- 2 files changed, 1 insertion(+), 170 deletions(-) diff --git a/.github/workflows/reusable-release.yaml b/.github/workflows/reusable-release.yaml index 4943da9522e7..fc590e190fc2 100644 --- a/.github/workflows/reusable-release.yaml +++ b/.github/workflows/reusable-release.yaml @@ -61,13 +61,6 @@ jobs: username: ${{ env.GH_USER }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Login to ECR - uses: docker/login-action@v3 - with: - registry: public.ecr.aws - username: ${{ secrets.ECR_ACCESS_KEY_ID }} - password: ${{ secrets.ECR_SECRET_ACCESS_KEY }} - - name: Checkout code uses: actions/checkout@v4.1.1 with: diff --git a/goreleaser.yml b/goreleaser.yml index 6e24883428dd..67db2a9c76cb 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -130,157 +130,6 @@ archives: - goos: windows format: zip - -brews: - - - repository: - owner: aquasecurity - 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" - test: | - system "#{bin}/trivy", "--version" - -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" - 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/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" - 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/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" - 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/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" - 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: '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 }}' - 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' - 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' - 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' - 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' - signs: - cmd: cosign env: @@ -295,15 +144,4 @@ signs: - "${artifact}" - "--yes" artifacts: all - output: true - -docker_signs: -- cmd: cosign - env: - - COSIGN_EXPERIMENTAL=1 - artifacts: manifests - output: true - args: - - 'sign' - - '${artifact}' - - '--yes' + output: true \ No newline at end of file