forked from warewulf/warewulf
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (63 loc) · 2.01 KB
/
nightly-release.yml
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
---
name: nightly
on:
workflow_dispatch:
schedule:
- cron: '05 00 * * *'
jobs:
generate:
name: Generate spec, dist and collect commits info
runs-on: ubuntu-latest
outputs:
should-continue: ${{ steps.generate.outputs.should-continue }}
version: ${{ steps.generate.outputs.version }}
release-id: ${{ steps.generate.outputs.release-id }}
permissions: write-all
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/generate
name: generate warewulf spec, dist and collect commits info
id: generate
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-id: ${{ github.event.release.id }}
publish:
name: Build and publish releases
runs-on: ubuntu-latest
needs: generate
if: needs.generate.outputs.should-continue == 'true'
container:
image: rockylinux/rockylinux:9
options: --privileged
strategy:
fail-fast: false
matrix:
include:
- target: rocky+epel-8-x86_64
arch: x86_64
dist: el8
- target: rocky+epel-9-x86_64
arch: x86_64
dist: el9
- target: opensuse-leap-15.5-x86_64
arch: x86_64
dist: suse.lp155
permissions: write-all
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/rpm
name: build rpms
id: rpm
with:
dist: ${{ matrix.dist }}
arch: ${{ matrix.arch }}
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ needs.generate.outputs.version }}
event-id: ${{ needs.generate.outputs.release-id }}