-
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (55 loc) · 1.39 KB
/
Copy pathrelease.yaml
File metadata and controls
55 lines (55 loc) · 1.39 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release 🎉
on:
release:
types:
- released
jobs:
gobin-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:
- name: Checkout project
uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1.49
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.20"
binary_name: webhooked
extra_files: LICENSE README.md
docker-image:
runs-on: ubuntu-latest
strategy:
matrix:
goVersion: [ '1.20' ]
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goVersion }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: build/Dockerfile
push: true
tags: |
atomys/webhooked:${{ github.ref_name }}
atomys/webhooked:latest