Skip to content

Commit 5deec54

Browse files
committed
fix Dockerfile
1 parent 059c63d commit 5deec54

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.goreleaser.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ release:
5656
dockers:
5757
- image_templates:
5858
- 'ghcr.io/guptarohit/asciigraph:{{ .Version }}'
59-
dockerfile: Dockerfile
59+
- 'ghcr.io/guptarohit/asciigraph:{{ .Tag }}'
60+
- 'ghcr.io/guptarohit/asciigraph:v{{ .Major }}'
61+
- 'ghcr.io/guptarohit/asciigraph:v{{ .Major }}.{{ .Minor }}'
62+
- 'ghcr.io/guptarohit/asciigraph:latest'
63+
dockerfile: goreleaser.dockerfile
6064
build_flag_templates:
6165
- '--label=org.opencontainers.image.title={{ .ProjectName }}'
6266
- '--label=org.opencontainers.image.name={{ .ProjectName }}'

goreleaser.dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM scratch
2+
COPY asciigraph /asciigraph
3+
ENTRYPOINT ["/asciigraph"]

0 commit comments

Comments
 (0)