-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (53 loc) · 1.73 KB
/
release.yml
File metadata and controls
58 lines (53 loc) · 1.73 KB
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
name: Release
# On tag push v*: run sanity tests first, then release. If sanity tests fail,
# the release is not published.
# Requires CLOUD_REGRESSION_PAT secret (same as sanity-test.yml).
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
sanity-tests:
name: Sanity tests (gate)
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Trigger and wait for sanity tests
uses: convictional/trigger-workflow-and-wait@v1.6.5
with:
owner: Altinity
repo: cloud-regression
github_token: ${{ secrets.CLOUD_REGRESSION_PAT }}
workflow_file_name: tf-release.yml
ref: main
wait_interval: 60
client_payload: >-
{
"use_local_provider": "true",
"provider_version": "",
"provider_ref": "${{ github.ref_name }}",
"job": "all"
}
propagate_failure: true
trigger_workflow: true
wait_workflow: true
goreleaser:
needs: [sanity-tests]
runs-on: [self-hosted, aws-altinity-inc-prod]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: 'go.mod'
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
with:
args: release --clean --release-notes ./CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_UNATTENDED_PASSPHRASE_ENC_BASE64: ${{ secrets.GPG_ENCRYPTED_PASSPHRASE_BASE64_SECRET }}