Skip to content

Commit

Permalink
fix: docker build (#1781)
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Rumney <[email protected]>
  • Loading branch information
Owen Rumney authored Jun 9, 2022
1 parent 87bb975 commit 616b768
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- master
pull_request:
paths-ignore:
- '*.md'

jobs:
build:
Expand Down Expand Up @@ -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
Expand Down
14 changes: 5 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}"
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM alpine:latest
# install git
RUN apk add --no-cache git


COPY tfsec /tfsec

## use a non-privileged user
Expand Down

0 comments on commit 616b768

Please sign in to comment.