Skip to content

Commit

Permalink
Fix goreleaser dockerfile (#691)
Browse files Browse the repository at this point in the history
* copy entrypoint into goreleaser build

* add test release make target
  • Loading branch information
dustin-decker committed Aug 3, 2022
1 parent b081766 commit d8ed026
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yml
Expand Up @@ -13,6 +13,8 @@ builds:
dockers:
- image_templates: ["trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile.goreleaser
extra_files:
- entrypoint.sh
use: buildx
build_flag_templates:
- --platform=linux/amd64
Expand All @@ -26,6 +28,8 @@ dockers:
- image_templates: ["trufflesecurity/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
goarch: arm64
dockerfile: Dockerfile.goreleaser
extra_files:
- entrypoint.sh
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
Expand All @@ -38,6 +42,8 @@ dockers:
- --label=org.opencontainers.image.licenses=AGPL-3.0
- image_templates: ["ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile.goreleaser
extra_files:
- entrypoint.sh
use: buildx
build_flag_templates:
- --platform=linux/amd64
Expand All @@ -51,6 +57,8 @@ dockers:
- image_templates: ["ghcr.io/trufflesecurity/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
goarch: arm64
dockerfile: Dockerfile.goreleaser
extra_files:
- entrypoint.sh
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -57,3 +57,6 @@ release-protos-image:

snifftest:
./hack/snifftest/snifftest.sh

test-release:
goreleaser release --rm-dist --skip-publish --snapshot

0 comments on commit d8ed026

Please sign in to comment.