Build and verify development RPMs with Gitea Actions
Build development RPM / rpm (push) Failing after 17s
Build development RPM / rpm (push) Failing after 17s
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
name: Build development RPM
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
rpm:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: registry.fedoraproject.org/fedora:43
|
||||
steps:
|
||||
- name: Install build tools
|
||||
run: |
|
||||
dnf -y install rpm-build python3 resource-agents git tar gzip diffutils findutils coreutils bash nodejs
|
||||
- name: Check out source
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Build and check RPMs
|
||||
run: bash scripts/build-rpm.sh
|
||||
- name: Test installation in the disposable job container
|
||||
run: |
|
||||
dnf -y install ./dist/*.noarch.rpm
|
||||
python3 tests/verify_installed_rpm.py
|
||||
# v3 uses the artifact protocol supported by older act_runner instances.
|
||||
- name: Save development packages
|
||||
uses: https://github.com/actions/upload-artifact@v3
|
||||
with:
|
||||
name: ocf-managed-container-fedora43
|
||||
path: dist/
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
# No registry uploads, release creation, or deployment while licensing is pending.
|
||||
Reference in New Issue
Block a user