-
Notifications
You must be signed in to change notification settings - Fork 47
65 lines (57 loc) · 2.07 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
on:
release:
types: [published]
name: Upload Release Asset
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
- name: Publish operator image and generate release assets
run: |
podman login -u="${{ secrets.QUAY_BOT }}" -p="${{ secrets.QUAY_PASSWORD }}" quay.io
export IMG_TAG="${{ steps.get_release.outputs.tag_name }}"
export VALIDATOR_IMG_TAG="${{ steps.get_release.outputs.tag_name }}"
export VERSION="`echo ${{ steps.get_release.outputs.tag_name }} | sed 's/^v//'`"
make release
- name: Upload CRD Asset
id: upload-crd-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./_out/olm-crds.yaml
asset_name: olm-crds.yaml
asset_content_type: text/plain
- name: Upload CSV Asset
id: upload-csv-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./_out/olm-ssp-operator.clusterserviceversion.yaml
asset_name: olm-ssp-operator.clusterserviceversion.yaml
asset_content_type: text/plain
- name: Upload Operator Asset
id: upload-operator-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./_out/ssp-operator.yaml
asset_name: ssp-operator.yaml
asset_content_type: text/plain