Skip to content

release

release #6

Workflow file for this run

---
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
# https://github.com/magnetikonline/action-golang-cache
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@797f193169d3c8ba6f60d90f50ecdadd2583fbd8 # tag=v3
with:
go-version: ~1.21
# with:
# go-version-file: go.mod
- uses: aquaproj/aqua-installer@fd2089d1f56724d6456f24d58605e6964deae124 # v2.3.2
with:
aqua_version: v2.28.0
enable_aqua_install: true
aqua_opts: '--tags release'
policy_allow: true
env:
AQUA_LOG_LEVEL: debug
AQUA_OPTS: ''
- name: mage-tidy
uses: magefile/mage-action@a3d5bb52942181c125118a2be4b4664c3337aef6 # v2
with:
version: latest
args: init
- name: docker-login
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
username: ${{ secrets.DSV_DOCKER_USERNAME }}
password: ${{ secrets.DSV_DOCKER_PASSWORD }}
- name: quay-login
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: quay.io
username: ${{ secrets.DOCKER_QUAY_LOGIN_NAME }}
password: ${{ secrets.DOCKER_QUAY_PASSWORD }}
- name: mage-release
uses: magefile/mage-action@a3d5bb52942181c125118a2be4b4664c3337aef6 # 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 }}