forked from devcentral-pnnl/miscscripts
-
Notifications
You must be signed in to change notification settings - Fork 7
254 lines (249 loc) · 7.35 KB
/
Copy pathmain.yml
File metadata and controls
254 lines (249 loc) · 7.35 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
name: Build
on:
schedule:
- cron: '0 8 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
jobs:
buildc-git:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build git container
run: ./containers/build git
buildc-curl-jq:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build curl-jq container
run: ./containers/build curl-jq
buildc-xmlstarlet:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build xmlstarlet container
run: ./containers/build xmlstarlet
buildc-gitlab-runner-operator:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build gitlab-runner-operator container
run: ./containers/build gitlab-runner-operator
buildc-tenant-namespace-operator:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build tenant-namespace-operator container
run: ./containers/build tenant-namespace-operator
# buildc-pixiecore:
# runs-on: ubuntu-24.04
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build pixiecore container
# run: ./containers/build pixiecore
buildc-ipmitool:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build ipmitool container
run: ./containers/build ipmitool
buildc-ipmi-exporter:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build ipmi-exporter container
run: ./containers/build ipmi-exporter
buildc-dhcpd:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build dhcpd container
run: ./containers/build dhcpd
buildc-inotify-tools:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build inotify-tools container
run: ./containers/build inotify-tools
buildc-chronyd:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build chronyd container
run: ./containers/build chronyd
buildc-debug-toolbox:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Build debug-toolbox container
run: ./containers/build debug-toolbox
# buildc-smartctl-exporter:
# runs-on: ubuntu-24.04
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build smartctl-exporter container
# run: ./containers/build smartctl-exporter
# buildc-rpms-containerd:
# runs-on: ubuntu-24.04
# needs:
# - buildc-rpms-node-base
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build rpms-containerd container
# env:
# RPM_GPG_KEY: ${{ secrets.RPM_GPG_KEY }}
# run: |
# printf "%s" "$RPM_GPG_KEY" > rpm.priv
# ./containers/build rpms-containerd9
# rm -f rpm.priv
# buildc-rpms-node-base:
# runs-on: ubuntu-24.04
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build rpms-node-base container
# env:
# RPM_GPG_KEY: ${{ secrets.RPM_GPG_KEY }}
# run: |
# printf "%s" "$RPM_GPG_KEY" > rpm.priv
# ./containers/build rpms-node-base9
# rm -f rpm.priv
# buildc-rpms-openvswitch:
# runs-on: ubuntu-24.04
# needs:
# - buildc-rpms-node-base
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build rpms-openvswitch container
# env:
# RPM_GPG_KEY: ${{ secrets.RPM_GPG_KEY }}
# run: |
# printf "%s" "$RPM_GPG_KEY" > rpm.priv
# ./containers/build rpms-openvswitch9
# rm -f rpm.priv
# buildc-rpms-k8s:
# runs-on: ubuntu-24.04
# needs:
# - buildc-rpms-node-base
# strategy:
# matrix:
# kube_version: ["1.30", "1.31"]
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build rpms-kubernetes container ${{ matrix.kube_version }}
# env:
# RPM_GPG_KEY: ${{ secrets.RPM_GPG_KEY }}
# run: |
# printf "%s" "$RPM_GPG_KEY" > rpm.priv
# ./containers/build rpms-kubernetes9 ${{ matrix.kube_version }}
# rm -f rpm.priv
# buildc-anaconda:
# runs-on: ubuntu-24.04
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build anaconda9 container
# run: ./containers/build anaconda9
#
# build-node-image:
# runs-on: ubuntu-24.04
# needs:
# - buildc-rpms-node-base
# - buildc-rpms-containerd
# - buildc-rpms-openvswitch
# - buildc-rpms-k8s
# strategy:
# matrix:
# kube_version: ["1.30", "1.31"]
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build full k8s node image ${{ matrix.kube_version }}
# env:
# RPM_GPG_KEY: ${{ secrets.RPM_GPG_KEY }}
# run: |
# printf "%s" "$RPM_GPG_KEY" > rpm.priv
# ./containers/build k8s-node-image9 ${{ matrix.kube_version }}
# rm -f rpm.priv
#
# buildc-anaconda-nginx:
# runs-on: ubuntu-24.04
# needs:
# - buildc-anaconda
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build anaconda+nginx9 container
# run: ./containers/build anaconda-nginx9
# build-node-image-nginx:
# runs-on: ubuntu-24.04
# needs:
# - build-node-image
# strategy:
# matrix:
# kube_version: ["1.30", "1.31"]
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.2
# - name: Build k8s-node-image+nginx9 container ${{ matrix.kube_version }}
# run: ./containers/build k8s-node-image-nginx9 ${{ matrix.kube_version }}
build-image-library-charts:
runs-on: ubuntu-24.04
needs:
# - buildc-anaconda-nginx
- buildc-chronyd
- buildc-debug-toolbox
- buildc-dhcpd
- buildc-inotify-tools
- buildc-ipmi-exporter
- buildc-ipmitool
# - build-node-image-nginx
# - buildc-pixiecore
# - buildc-smartctl-exporter
env:
GITHUB_LIBRARY_CHARTS_TOKEN: ${{ secrets.GIT_LIBRARY_CHARTS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Configure Git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Build image library charts
run: ./charts/image-library-charts/buildall
build-charts:
runs-on: ubuntu-24.04
needs:
- build-image-library-charts
- buildc-gitlab-runner-operator
- buildc-tenant-namespace-operator
env:
GITHUB_LIBRARY_CHARTS_TOKEN: ${{ secrets.GIT_LIBRARY_CHARTS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Configure Git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Build charts
run: ./charts/charts/buildall