-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1017 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: ["386", amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/whawty-nginx-sso"
binary_name: "whawty-nginx-sso"
pre_command: export CGO_ENABLED=0
extra_files: AUTHORS LICENSE README.md doc/man/whawty-nginx-sso.8
md5sum: false
sha256sum: true
docker:
name: Build and Publish Docker Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: VaultVulp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: app
image-platform: linux/arm64,linux/amd64,linux/i386
extract-git-tag: true