Skip to content

Commit bbf375c

Browse files
committed
pkg: Add support for Fedora 36, drop Fedora 33
1 parent e1f0e6a commit bbf375c

File tree

1 file changed

+43
-39
lines changed

1 file changed

+43
-39
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ jobs:
123123
name: debian-latest
124124
path: release
125125

126-
build-f35:
126+
build-f36:
127127
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
128128

129-
name: Build Fedora 35 package
129+
name: Build Fedora 36 package
130130
runs-on: ubuntu-latest
131131
needs: [lint, test]
132132
container:
133-
image: fedora:35
133+
image: fedora:36
134134
options: --security-opt seccomp=unconfined
135135

136136
steps:
@@ -165,16 +165,18 @@ jobs:
165165
- name: Upload artifacts
166166
uses: actions/upload-artifact@v1
167167
with:
168-
name: fedora-35-latest
168+
name: fedora-36-latest
169169
path: pkg/fedora/out/x86_64
170170

171-
build-f34:
171+
build-f35:
172172
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
173173

174-
name: Build Fedora 34 package
174+
name: Build Fedora 35 package
175175
runs-on: ubuntu-latest
176176
needs: [lint, test]
177-
container: fedora:34
177+
container:
178+
image: fedora:35
179+
options: --security-opt seccomp=unconfined
178180

179181
steps:
180182
- name: Checkout code
@@ -208,16 +210,16 @@ jobs:
208210
- name: Upload artifacts
209211
uses: actions/upload-artifact@v1
210212
with:
211-
name: fedora-34-latest
213+
name: fedora-35-latest
212214
path: pkg/fedora/out/x86_64
213215

214-
build-f33:
216+
build-f34:
215217
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
216218

217-
name: Build Fedora 33 package
219+
name: Build Fedora 34 package
218220
runs-on: ubuntu-latest
219221
needs: [lint, test]
220-
container: fedora:33
222+
container: fedora:34
221223

222224
steps:
223225
- name: Checkout code
@@ -251,14 +253,14 @@ jobs:
251253
- name: Upload artifacts
252254
uses: actions/upload-artifact@v1
253255
with:
254-
name: fedora-33-latest
256+
name: fedora-34-latest
255257
path: pkg/fedora/out/x86_64
256258

257259
release:
258260
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
259261

260262
name: Publish release
261-
needs: [build-bin, build-deb, build-f35, build-f34, build-f33]
263+
needs: [build-bin, build-deb, build-f36, build-f35, build-f34]
262264
runs-on: ubuntu-latest
263265

264266
steps:
@@ -272,6 +274,11 @@ jobs:
272274
with:
273275
name: debian-latest
274276

277+
- name: Download Fedora 36 artifacts
278+
uses: actions/download-artifact@v1
279+
with:
280+
name: fedora-36-latest
281+
275282
- name: Download Fedora 35 artifacts
276283
uses: actions/download-artifact@v1
277284
with:
@@ -282,11 +289,6 @@ jobs:
282289
with:
283290
name: fedora-34-latest
284291

285-
- name: Download Fedora 33 artifacts
286-
uses: actions/download-artifact@v1
287-
with:
288-
name: fedora-33-latest
289-
290292
- name: Upload assets
291293
uses: svenstaro/upload-release-action@v1-release
292294
with:
@@ -347,12 +349,12 @@ jobs:
347349
git commit -m "Update Debian DTX daemon"
348350
git push --set-upstream origin "${update_branch}"
349351
350-
repo-f35:
351-
name: Update Fedora 35 package repository
352+
repo-f36:
353+
name: Update Fedora 36 package repository
352354
needs: [release]
353355
runs-on: ubuntu-latest
354356
container:
355-
image: fedora:35
357+
image: fedora:36
356358
options: --security-opt seccomp=unconfined
357359
steps:
358360
- name: Install dependencies
@@ -362,7 +364,7 @@ jobs:
362364
- name: Download artifacts
363365
uses: actions/download-artifact@v1
364366
with:
365-
name: fedora-35-latest
367+
name: fedora-36-latest
366368

367369
- name: Update repository
368370
env:
@@ -376,8 +378,8 @@ jobs:
376378
git clone -b "${BRANCH_STAGING}" "${repo}" repo
377379
378380
# copy packages
379-
cp fedora-35-latest/* repo/fedora/f35
380-
cd repo/fedora/f35
381+
cp fedora-36-latest/* repo/fedora/f36
382+
cd repo/fedora/f36
381383
382384
# parse git tag from ref
383385
GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g')
@@ -396,14 +398,16 @@ jobs:
396398
update_branch="${BRANCH_STAGING}-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
397399
git checkout -b "${update_branch}"
398400
git add .
399-
git commit -m "Update Fedora 35 DTX daemon"
401+
git commit -m "Update Fedora 36 DTX daemon"
400402
git push --set-upstream origin "${update_branch}"
401403
402-
repo-f34:
403-
name: Update Fedora 34 package repository
404+
repo-f35:
405+
name: Update Fedora 35 package repository
404406
needs: [release]
405407
runs-on: ubuntu-latest
406-
container: fedora:34
408+
container:
409+
image: fedora:35
410+
options: --security-opt seccomp=unconfined
407411
steps:
408412
- name: Install dependencies
409413
run: |
@@ -412,7 +416,7 @@ jobs:
412416
- name: Download artifacts
413417
uses: actions/download-artifact@v1
414418
with:
415-
name: fedora-34-latest
419+
name: fedora-35-latest
416420

417421
- name: Update repository
418422
env:
@@ -426,8 +430,8 @@ jobs:
426430
git clone -b "${BRANCH_STAGING}" "${repo}" repo
427431
428432
# copy packages
429-
cp fedora-34-latest/* repo/fedora/f34
430-
cd repo/fedora/f34
433+
cp fedora-35-latest/* repo/fedora/f35
434+
cd repo/fedora/f35
431435
432436
# parse git tag from ref
433437
GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g')
@@ -446,14 +450,14 @@ jobs:
446450
update_branch="${BRANCH_STAGING}-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
447451
git checkout -b "${update_branch}"
448452
git add .
449-
git commit -m "Update Fedora 34 DTX daemon"
453+
git commit -m "Update Fedora 35 DTX daemon"
450454
git push --set-upstream origin "${update_branch}"
451455
452-
repo-f33:
453-
name: Update Fedora 33 package repository
456+
repo-f34:
457+
name: Update Fedora 34 package repository
454458
needs: [release]
455459
runs-on: ubuntu-latest
456-
container: fedora:33
460+
container: fedora:34
457461
steps:
458462
- name: Install dependencies
459463
run: |
@@ -462,7 +466,7 @@ jobs:
462466
- name: Download artifacts
463467
uses: actions/download-artifact@v1
464468
with:
465-
name: fedora-33-latest
469+
name: fedora-34-latest
466470

467471
- name: Update repository
468472
env:
@@ -476,8 +480,8 @@ jobs:
476480
git clone -b "${BRANCH_STAGING}" "${repo}" repo
477481
478482
# copy packages
479-
cp fedora-33-latest/* repo/fedora/f33
480-
cd repo/fedora/f33
483+
cp fedora-34-latest/* repo/fedora/f34
484+
cd repo/fedora/f34
481485
482486
# parse git tag from ref
483487
GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g')
@@ -496,5 +500,5 @@ jobs:
496500
update_branch="${BRANCH_STAGING}-$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
497501
git checkout -b "${update_branch}"
498502
git add .
499-
git commit -m "Update Fedora 33 DTX daemon"
503+
git commit -m "Update Fedora 34 DTX daemon"
500504
git push --set-upstream origin "${update_branch}"

0 commit comments

Comments
 (0)