Skip to content

Commit

Permalink
Expand releases
Browse files Browse the repository at this point in the history
Freebsd and Windows added to the OSs
arm and arm64 added to the Archs
Added Docker
  • Loading branch information
Gustavo Chain committed Feb 27, 2020
1 parent 1ec586f commit c506fa7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ jobs:
uses: actions/setup-go@v1
with:
go-version: 1.13.x
-
name: Docker login
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 26 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,38 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
builds:
- env:
- CGO_ENABLED=0
-
env:
- CGO_ENABLED=0

goos:
- linux
- freebsd
- darwin
- windows

goarch:
- amd64
- 386
- arm
- arm64

dockers:
-
dockerfile: Dockerfile.goreleaser
image_templates:
- "gchaincl/mempool:latest"
- "gchaincl/mempool:{{ .Tag }}"

archives:
- replacements:
darwin: Darwin
linux: Linux
freebsd: FreeBSD
darwin: Darwin
windows: Windows
386: i386
amd64: x86_64

checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM scratch
COPY mempool /
ENTRYPOINT ["/mempool"]

0 comments on commit c506fa7

Please sign in to comment.