Skip to content

Commit

Permalink
Use dedicated dockerfile for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Petrausch committed Oct 19, 2020
1 parent 880157e commit 004444a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ changelog:
- '^test:'

dockers:
- image_templates:
- dockerfile: release/Dockerfile.scratch
image_templates:
- "hikhvar/mqtt2prometheus:{{ .Tag }}"
- "hikhvar/mqtt2prometheus:latest"
- "docker.pkg.github.com/hikhvar/mqtt2prometheus/mqtt2prometheus:{{ .Tag }}"
Expand Down
4 changes: 4 additions & 0 deletions release/Dockerfile.scratch
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM scratch

COPY mqtt2prometheus /mqtt2prometheus
CMD ["/mqtt2prometheus"]

0 comments on commit 004444a

Please sign in to comment.