-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (36 loc) · 986 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
name: Build and release
on:
push:
tags:
- 'v*.*.*'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Build and release
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-github-docker-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish to registry
uses: elgohr/Publish-Docker-Github-Action@v4
with:
name: ${{ github.event.repository.full_name }}/${{ github.event.repository.name }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
tags: ${{ github.ref_name }}