-
Notifications
You must be signed in to change notification settings - Fork 55
73 lines (61 loc) · 2.2 KB
/
release-qa.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
# Copyright © 2021 - 2023 SUSE LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Release QA - Build draft binaries
on:
workflow_dispatch:
schedule:
- cron: '0 22 * * *'
env:
SETUP_GO_VERSION: '1.20.4'
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write # This is the key for OIDC!
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
# A tag is mandatory but it will not be pushed in the repo
# because we do not release
- name: Create fake tag
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git tag -a v99.0.0 -m "Fake tag for QA" --force
- name: Set up Go
uses: actions/setup-go@v4
timeout-minutes: 5
with:
cache: false
go-version: ${{ env.SETUP_GO_VERSION }}
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: anchore/sbom-action/download-syft@v0.14.1
- uses: sigstore/cosign-installer@v2.8.1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: 1.18.2
args: release --skip-announce --skip-validate --config .goreleaser-qa.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}