-
Notifications
You must be signed in to change notification settings - Fork 39
48 lines (40 loc) · 1.02 KB
/
operator-cd.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
name: operator-cd
on:
push:
branches:
- master
tags-ignore:
- '*.*'
env:
GOPATH: /tmp/go
GO_VERSION: 1.20.x
jobs:
binary:
name: Build & push a new operator release
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Prepare tools
uses: codeready-toolchain/toolchain-cicd/prepare-tools-action@master
- name: Release operator
uses: codeready-toolchain/toolchain-cicd/release-operator-action@master
with:
quay-token: ${{ secrets.QUAY_TOKEN }}
quay-namespace: codeready-toolchain