Skip to content

Commit

Permalink
deploy: change the Dockerfile binary to match goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
doniacld committed Jul 14, 2022
1 parent 7850064 commit af8e115
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ builds:
- BUILDER=GoReleaser
goos:
- linux
- darwin
main: ./cmd/

release:
Expand All @@ -20,8 +21,8 @@ release:
name: tiny-hen
footer: |
## Docker Images
- `ghcr.io/doniacld/tiny-hen:{{ .Version }}`
- `ghcr.io/doniacld/tiny-hen:latest`
- docker pull `ghcr.io/doniacld/tiny-hen:{{ .Version }}`
- docker pull `ghcr.io/doniacld/tiny-hen:latest`
dockers:
- image_templates: ["ghcr.io/doniacld/tiny-hen:{{ .Version }}"]
Expand Down
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM golang:1.18
#FROM golang:1.18
#
#RUN mkdir /app
#WORKDIR /app
#COPY tiny-hen tiny-hen
#EXPOSE 10010
#CMD ["tiny-hen"]

RUN mkdir /app
WORKDIR /app
COPY . /app/
EXPOSE 10010
CMD ["/app/bin/tinyhen-server-amd64"]
FROM scratch
ENTRYPOINT ["/tiny-hen"]
COPY tiny-hen /
7 changes: 7 additions & 0 deletions Dockerfile-local
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM golang:1.18

RUN mkdir /app
WORKDIR /app
COPY . /app/
EXPOSE 10010
CMD ["/app/bin/tiny-hen"]
2 changes: 1 addition & 1 deletion deploy/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
containers:
- name: tinyhen-app
image: tinyhen-server:latest
image: ghcr.io/doniacld/tiny-hen:latest
imagePullPolicy: IfNotPresent
restartPolicy: Always
---
Expand Down

0 comments on commit af8e115

Please sign in to comment.