2020-03-21 21:09:15 +01:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-09-14 11:37:38 +02:00
|
|
|
- name: Checkout
|
2021-10-18 15:04:28 +02:00
|
|
|
uses: actions/checkout@v2.3.5
|
2020-03-21 21:09:15 +01:00
|
|
|
with:
|
2021-09-14 11:37:38 +02:00
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Setup go
|
|
|
|
uses: actions/setup-go@v2
|
2020-03-21 21:09:15 +01:00
|
|
|
with:
|
2021-09-14 11:37:38 +02:00
|
|
|
go-version: 1.16.x
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v1.10.0
|
2020-03-21 21:09:15 +01:00
|
|
|
with:
|
2021-09-14 11:37:38 +02:00
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Release
|
2021-09-14 15:25:01 +02:00
|
|
|
uses: goreleaser/goreleaser-action@v2.7.0
|
2020-03-21 21:09:15 +01:00
|
|
|
with:
|
2021-09-14 11:37:38 +02:00
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
2020-03-21 22:30:41 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|