Skip to content

Commit

Permalink
build: add Dockerfile and build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
LeslieLeung committed Nov 4, 2023
1 parent 0cca33e commit 73251ba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: stable
- name: Docker Login
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ archives:
format_overrides:
- goos: windows
format: zip
dockers:
- image_templates:
- leslieleung/reaper:{{ .Tag }}
- leslieleung/reaper:latest
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:3.18.4
WORKDIR /app
COPY reaper /app/reaper

CMD ["/app/reaper"]

0 comments on commit 73251ba

Please sign in to comment.