-
Notifications
You must be signed in to change notification settings - Fork 51
40 lines (33 loc) · 1000 Bytes
/
release.yaml
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
name: Release
on:
push:
tags: ['[0-9]+\.[0-9]+\.[0-9]+']
jobs:
release:
runs-on: ubuntu-latest
name: Release
steps:
- uses: actions/[email protected]
with:
submodules: true
- uses: actions/setup-go@v2
with:
go-version: ^1.19
- name: Create release distribution
run: make build-all-platforms tar-all-platforms
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker image
run: |
export DOCKER_TAG=${GITHUB_REF##*/}
make docker docker-push
- name: Create Github release
run: |
export TAG=${GITHUB_REF##*/}
gh release create ${TAG} --title "Release ${TAG}" *.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}