Skip to content

Commit

Permalink
Goreleaser: publish docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
pijng committed Jan 28, 2024
1 parent d6e2b10 commit 9ec5cdd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURYPUSHTOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
16 changes: 16 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,25 @@ nfpms:
formats:
- deb
- rpm

publishers:
- name: fury.io
ids:
- nfpm-default
dir: "{{ dir .ArtifactPath }}"
cmd: curl -s -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/pijng/

dockers:
- image_templates:
- "moonlogs:{{ .Version }}-{{ .Os }}-{{ .Arch }}"
build_flag_templates:
- "-t moonlogs:{{ .Version }}-{{ .Os }}-{{ .Arch }}"
goos:
- linux
goarch:
- amd64
build_context: .
dockerfile: Dockerfile
skip_push: auto
username: {{ .Env.DOCKER_USERNAME }}
password: {{ .Env.DOCKER_PASSWORD }}

0 comments on commit 9ec5cdd

Please sign in to comment.