-
Notifications
You must be signed in to change notification settings - Fork 57
63 lines (53 loc) · 1.32 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
name: Build and publish release artifacts
on:
push:
tags: [ 'v*' ]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
trivy-scan:
uses: "./.github/workflows/common-trivy.yaml"
permissions:
contents: read
security-events: write
with:
export-csv: true
codeql:
uses: "./.github/workflows/common-codeql.yaml"
permissions:
contents: read
security-events: write
with:
export-report: true
publish-images:
uses: "./.github/workflows/common-build-images.yaml"
needs: [trivy-scan]
secrets: inherit
with:
publish: true
image-tag: ${{ github.ref_name }}
github-environment: "release"
build-packages:
needs: [trivy-scan]
permissions:
contents: write
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build packages
run: "make cross-packages Q="
- name: Build vendored dist tarball
run: "make vendored-dist Q="
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}
draft: true
append_body: true
files: |
packages/release-assets/*
vendored-cri-resource-manager-*.tar.gz