-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathnightly-koncur-0.9.yaml
More file actions
178 lines (165 loc) · 5.43 KB
/
Copy pathnightly-koncur-0.9.yaml
File metadata and controls
178 lines (165 loc) · 5.43 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
name: Run Koncur nightly (Release 0.9)
on:
schedule:
- cron: "5 3 * * *"
workflow_call:
inputs:
branch:
description: |
The branch that should be used to pull all konveyor related repos.
For example, if you wanted to set a nightly build for release-0.8, you would specify
"release-0.8".
required: false
type: string
default: main
workflow_dispatch:
inputs:
branch:
description: |
The branch that should be used to pull all konveyor related repos.
For example, if you wanted to set a nightly build for release-0.8, you would specify
"release-0.8".
required: false
type: string
default: main
jobs:
nightly-tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.tag }}
steps:
- name: Get Nightly Tag
id: get_tag
shell: bash
run: |
date=$(date +'%Y.%m.%d')
echo "tag=${{ inputs.branch || 'main' }}_$date" >> $GITHUB_OUTPUT
prepare-matrix:
runs-on: ubuntu-latest
needs: nightly-tag
outputs:
matrix_0: ${{ steps.prepare.outputs.matrix_0 }}
matrix_1: ${{ steps.prepare.outputs.matrix_1 }}
matrix_2: ${{ steps.prepare.outputs.matrix_2 }}
matrix_3: ${{ steps.prepare.outputs.matrix_3 }}
steps:
- name: Checkout ci repo
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Prepare matrix configs
id: prepare
shell: bash
run: |
pip install -r scripts/requirements.txt
python scripts/parse_matrix_config.py .github/workflows/nightly-matrix-config.yaml -t ${{ needs.nightly-tag.outputs.tag }} -b ${{ inputs.branch || 'main' }} out
matrix_0=$(cat out/level_0.json)
matrix_1=$(cat out/level_1.json)
matrix_2=$(cat out/level_2.json)
matrix_3=$(cat out/level_3.json)
{
echo "matrix_0<<EOF"
echo "$matrix_0"
echo "EOF"
} >> $GITHUB_OUTPUT
{
echo "matrix_1<<EOF"
echo "$matrix_1"
echo "EOF"
} >> $GITHUB_OUTPUT
{
echo "matrix_2<<EOF"
echo "$matrix_2"
echo "EOF"
} >> $GITHUB_OUTPUT
{
echo "matrix_3<<EOF"
echo "$matrix_3"
echo "EOF"
} >> $GITHUB_OUTPUT
build-images:
name: "Build level 0 images"
if: ${{ fromJSON(needs.prepare-matrix.outputs.matrix_0).image[0] != null }}
needs: prepare-matrix
uses: konveyor/ci/.github/workflows/build-nightly-images.yaml@main
with:
matrix-config: ${{ needs.prepare-matrix.outputs.matrix_0 }}
branch: ${{ inputs.branch || 'release-0.9' }}
build-level1-images:
name: "Build level 1 images"
if: ${{ !failure() && fromJSON(needs.prepare-matrix.outputs.matrix_1).image[0] != null }}
needs:
- prepare-matrix
- build-images
uses: konveyor/ci/.github/workflows/build-nightly-images.yaml@main
with:
matrix-config: ${{ needs.prepare-matrix.outputs.matrix_1 }}
branch: ${{ inputs.branch || 'release-0.9' }}
build-level2-images:
name: "Build level 2 images"
if: ${{ !failure() && fromJSON(needs.prepare-matrix.outputs.matrix_2).image[0] != null }}
needs:
- prepare-matrix
- build-level1-images
uses: konveyor/ci/.github/workflows/build-nightly-images.yaml@main
with:
matrix-config: ${{ needs.prepare-matrix.outputs.matrix_2 }}
branch: ${{ inputs.branch || 'release-0.9' }}
build-level3-images:
name: "Build level 3 images"
if: ${{ !failure() && fromJSON(needs.prepare-matrix.outputs.matrix_3).image[0] != null }}
needs:
- prepare-matrix
- build-level2-images
uses: konveyor/ci/.github/workflows/build-nightly-images.yaml@main
with:
matrix-config: ${{ needs.prepare-matrix.outputs.matrix_3 }}
branch: ${{ inputs.branch || 'release-0.9' }}
## Now that all the images are built, we need to build the operator image.
##
##
## Now we need to test full e2e kantra, kai, and the ui/operator.
## The e2e tests for these, should be in the repos, because an end user
## may need to debug them.
# # For now, to get this workflow working, and show it, I will create the matrix
#
## To start, I am going to add back something that looks like the API tests
## And something that looks like the UI tests.
#
# This will just do kantra testing on the images now.
#
#
run-koncur-kantra-action:
if: ${{ !cancelled() && !failure() }}
needs:
- build-images
- build-level1-images
- build-level2-images
- build-level3-images
- nightly-tag
strategy:
fail-fast: false
matrix:
os:
- os: "linux"
runner: "ubuntu-24.04-arm"
- os: "macos"
runner: "macos-26-large"
- os: "windows"
runner: "windows-latest"
exclude:
- os:
os: "macos"
runner: "macos-26-large"
runs-on: ${{ matrix.os.runner }}
steps:
- name: Run Koncur Testing
id: koncur-test
uses: konveyor/ci/koncur-kantra@main
with:
os: ${{ matrix.os.os }}
image_pattern: |
*{kantra,provider}--${{ needs.nightly-tag.outputs.tag }}
ref: ${{ inputs.branch || 'release-0.9' }}