-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (62 loc) · 2.14 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
name: release
on:
# push:
# tags:
# - 'v*'
workflow_dispatch:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.action }}
cancel-in-progress: true
jobs:
goreleaser:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
# https://github.com/magnetikonline/action-golang-cache
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@777394c89f8ed6fcf1649505277c46c1cd06494d # v4
with:
go-version-file: go.mod
- uses: aquaproj/aqua-installer@61e2563dfe7674cbf74fe6ec212e444198a3bb00 # tag=v2.0.2
with:
aqua_version: v2.10.1
enable_aqua_install: true
aqua_opts: '--tags release'
env:
AQUA_LOG_LEVEL: debug
AQUA_OPTS: ''
- name: mage-tidy
uses: magefile/mage-action@3b833fb24c0d19eed3aa760b9eb285b4b84f420f # v2
with:
version: latest
args: init
- name: docker-login
uses: docker/login-action@v2 # renovate: tag=v2
with:
username: ${{ secrets.DSV_DOCKER_USERNAME }}
password: ${{ secrets.DSV_DOCKER_PASSWORD }}
- name: mage-release
uses: magefile/mage-action@3b833fb24c0d19eed3aa760b9eb285b4b84f420f # v2
with:
version: latest
args: release
env:
# GitHub sets this automatically
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_CHANNEL: ${{ secrets.DSV_SLACK_CHANNEL }}
SLACK_WEBHOOK: ${{ secrets.DSV_SLACK_WEBHOOK }}
DOCKER_ORG: ${{ secrets.DSV_DOCKER_REGISTRY }}
# - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@ff11ca24a9b39f2d36796d1fbd7a4e39c182630a # renovate: tag=v3.1.0
# with:
# version: latest
# args: release --rm-dist
# env:
# # GitHub sets this automatically
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SLACK_CHANNEL: ${{ secrets.DSV_SLACK_CHANNEL }}
# SLACK_WEBHOOK: ${{ secrets.DSV_SLACK_WEBHOOK }}
# DOCKER_ORG: ${{ secrets.DSV_DOCKER_REGISTRY }}