Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM gcr.io/distroless/static-debian12:nonroot
COPY krakenkey-probe /probe
COPY probe.example.yaml /etc/krakenkey-probe/probe.yaml
VOLUME ["/var/lib/krakenkey-probe"]
EXPOSE 8080
ENTRYPOINT ["/probe"]
CMD ["--config", "/etc/krakenkey-probe/probe.yaml"]
18 changes: 11 additions & 7 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ builds:

archives:
- id: probe
builds:
- probe
format_overrides:
- goos: linux
format: tar.gz
- goos: darwin
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: tar.gz

dockers:
- image_templates:
Expand All @@ -35,8 +37,9 @@ dockers:
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=VERSION={{ .Version }}"
dockerfile: Dockerfile
dockerfile: Dockerfile.goreleaser
extra_files:
- probe.example.yaml
goos: linux
goarch: amd64
- image_templates:
Expand All @@ -45,8 +48,9 @@ dockers:
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--build-arg=VERSION={{ .Version }}"
dockerfile: Dockerfile
dockerfile: Dockerfile.goreleaser
extra_files:
- probe.example.yaml
goos: linux
goarch: arm64

Expand Down
Loading