-
Notifications
You must be signed in to change notification settings - Fork 27
42 lines (36 loc) · 1.05 KB
/
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
41
42
name: release
on:
push:
tags:
- 'v*'
defaults:
run:
shell: bash
jobs:
release:
runs-on: ubuntu-20.04
if: github.repository == 'argoproj-labs/argocd-extension-metrics'
name: Release
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@fcdc43634adb5f7ae75a9d7a9b9361790f7293e2 # [email protected]
with:
go-version: 1.18
- name: Docker Login in quay.io
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # pin@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # pin@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}