Carlos Mogas da Silva
8841a1df54
All checks were successful
Build docker image / build-and-publish (push) Successful in 3m46s
Forgejo Runner doesn't support dynamic matrix jobs (where the input comes from output of another job). To work around this, accept a list of spec files to process and run the same thing over and over. Might still have to fix the output.
30 lines
640 B
YAML
30 lines
640 B
YAML
name: "RPM Build"
|
|
description: "Builds RPMs for a target system from a spec file"
|
|
|
|
inputs:
|
|
specs:
|
|
description: "Paths to the spec files"
|
|
required: true
|
|
system:
|
|
description: "System target to build the package"
|
|
required: true
|
|
arch:
|
|
description: "Target arch to build the package"
|
|
required: true
|
|
default: "x86_64"
|
|
nocheck:
|
|
description: "Don't run %check commands"
|
|
required: false
|
|
default: false
|
|
|
|
outputs:
|
|
rpm:
|
|
description: "Path to the generated rpm file"
|
|
|
|
runs:
|
|
using: "docker"
|
|
image: "Dockerfile"
|
|
args:
|
|
- ${{ inputs.spec }}
|
|
- ${{ inputs.system }}
|
|
- ${{ inputs.arch }}
|