From 187d5aa88a3162583dda7c45bf2bd174a7e51f0c Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Thu, 27 Feb 2020 18:47:30 +0100 Subject: [PATCH] Expand releases Freebsd and Windows added to the OSs arm and arm64 added to the Archs Added Docker --- .github/workflows/release.yml | 2 ++ .goreleaser.yml | 29 ++++++++++++++++++++++++++--- Dockerfile.goreleaser | 3 +++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 Dockerfile.goreleaser diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eea32f3..810dff8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,3 +29,5 @@ jobs: key: ${{ secrets.YOUR_PRIVATE_KEY }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 81fc114..59d4c04 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser new file mode 100644 index 0000000..c82804e --- /dev/null +++ b/Dockerfile.goreleaser @@ -0,0 +1,3 @@ +FROM scratch +COPY mempool / +ENTRYPOINT ["/mempool"]