chore: build release assets

This commit is contained in:
2021-12-05 09:55:01 +00:00
parent b0fe4d71de
commit ae1b37e493
2 changed files with 29 additions and 1 deletions

28
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,28 @@
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.22
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.17.4.linux-amd64.tar.gz"
project_path: "./cmd/test-binary"
binary_name: "test-binary"
extra_files: LICENSE README.md

View File

@@ -1,4 +1,4 @@
FROM golang:alpine as build
FROM golang:1.17.4-alpine3.15 as build
WORKDIR /build
COPY . .
RUN go get -d -v .