Expand releases
Some checks failed
release / goreleaser (push) Has been cancelled

Freebsd and Windows added to the OSs
arm and arm64 added to the Archs
Added Docker
This commit is contained in:
Gustavo Chain 2020-02-27 19:03:14 +01:00
parent 1ec586f409
commit c506fa751b
No known key found for this signature in database
GPG Key ID: DA7C1746DC118A46
3 changed files with 32 additions and 4 deletions

View File

@ -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 }}

View File

@ -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:

3
Dockerfile.goreleaser Normal file
View File

@ -0,0 +1,3 @@
FROM scratch
COPY mempool /
ENTRYPOINT ["/mempool"]