forked from mvisonneau/gitlab-ci-pipelines-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (61 loc) · 1.8 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
66
67
68
69
70
71
72
73
74
75
---
name: release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches:
- main
jobs:
release:
runs-on: ubuntu-22.04
env:
DOCKER_CLI_EXPERIMENTAL: 'enabled'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: docker.io Login
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: ghcr.io login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}
- name: quay.io Login
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ github.repository_owner }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Snapcraft config
uses: samuelmeuli/action-snapcraft@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Install goreleaser
uses: goreleaser/goreleaser-action@v4
with:
version: v1.24.0
install-only: true
- name: Run goreleaser
run: make ${{ github.ref == 'refs/heads/main' && 'pre' || '' }}release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}