Files
warewulf/.github/workflows/nightly-release.yml
Jonathon Anderson 4a246e1b72 Release v4.6.1
- Back-port previous GitHub release notes to `.github/releases/`
- Fix SUSE and Rocky Linux 8 builds

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-04-04 05:12:57 -06:00

77 lines
2.1 KiB
YAML

---
name: nightly
on:
workflow_dispatch: {}
schedule:
- cron: '05 00 * * *'
jobs:
generate:
name: Generate spec, dist and collect commits info
runs-on: ubuntu-24.04
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
- name: generate warewulf spec, dist and collect commits info
uses: ./.github/actions/generate
id: generate
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-id: ${{ github.event.release.id }}
publish:
name: Build and publish releases
runs-on: ${{ matrix.runs-on }}
needs: generate
if: needs.generate.outputs.should-continue == 'true'
container:
image: rockylinux/rockylinux:9
options: --privileged
strategy:
fail-fast: false
matrix:
arch: [x86_64, aarch64]
dist: [el9, el8, suse.lp155]
include:
- dist: el8
target: rocky+epel-8 #-arch
- dist: el9
target: rocky+epel-9
- dist: suse.lp155
target: opensuse-leap-15.5
- arch: x86_64
runs-on: ubuntu-24.04
upload-source: 'true'
- arch: aarch64
runs-on: ubuntu-24.04-arm
permissions: write-all
steps:
- name: Install git
run: |
dnf install -y git
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: build rpms
uses: ./.github/actions/rpm
id: rpm
with:
dist: ${{ matrix.dist }}
arch: ${{ matrix.arch }}
target: ${{ matrix.target }}-${{ matrix.arch }}
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ needs.generate.outputs.version }}
event-id: ${{ needs.generate.outputs.release-id }}
upload-source: ${{ matrix.upload-source }}