diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index 724e068780..0dfa7f7d2a 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -4,6 +4,9 @@ on: push: branches: - master + pull_request: + paths-ignore: + - '*.md' jobs: build: @@ -38,7 +41,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Release + - name: Release dry run uses: goreleaser/goreleaser-action@v3 with: version: latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 2fe630d63e..d880d1c371 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -67,13 +67,11 @@ dockers: - image_templates: ["aquasec/{{ .ProjectName }}:{{ .Tag }}-arm64v8"] ids: - tfsec - goarch: arm64v8 + goarch: arm64 dockerfile: Dockerfile use: buildx build_flag_templates: - - --build-arg - - --no-cache - - --platform=linux/arm64 + - --platform=linux/arm64/v8 - image_templates: ["aquasec/{{ .ProjectName }}-alpine:{{ .Tag }}-amd64"] ids: - tfsec @@ -88,9 +86,7 @@ dockers: dockerfile: Dockerfile use: buildx build_flag_templates: - - --platform=linux/arm64 - - --build-arg - - --no-cache + - --platform=linux/arm64/v8 - image_templates: ["aquasec/{{ .ProjectName }}-scratch:{{ .Tag }}-amd64"] ids: - tfsec @@ -104,7 +100,7 @@ dockers: dockerfile: Dockerfile.scratch use: buildx build_flag_templates: - - --platform=linux/arm64 + - --platform=linux/arm64/v8 - image_templates: ["aquasec/{{ .ProjectName }}-ci:{{ .Tag }}-amd64"] ids: - tfsec @@ -118,7 +114,7 @@ dockers: dockerfile: Dockerfile.ci use: buildx build_flag_templates: - - --platform=linux/arm64 + - --platform=linux/arm64/v8 docker_manifests: - name_template: "aquasec/{{ .ProjectName }}:{{ .Tag }}" diff --git a/Dockerfile b/Dockerfile index 09f9a274f4..8cafcdb400 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ FROM alpine:latest # install git RUN apk add --no-cache git - COPY tfsec /tfsec ## use a non-privileged user