Skip to content

Commit

Permalink
Add release Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Mar 6, 2024
1 parent a7b5073 commit 1b4202b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/.goreleaser.yaml → .github/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ builds:
- amd64
- arm64

gomod:
proxy: true

archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

Expand All @@ -34,7 +37,7 @@ signs:
dockers:
- image_templates:
- "ghcr.io/gnolang/faucet:{{ .Tag }}"
dockerfile: Dockerfile
dockerfile: Dockerfile.release
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean --config ./.github/.goreleaser.yaml
args: release --clean --config ./.github/goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.
5 changes: 5 additions & 0 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine

COPY faucet /usr/local/bin/gnofaucet

ENTRYPOINT [ "/usr/local/bin/faucet" ]

0 comments on commit 1b4202b

Please sign in to comment.