Consolidate builds into 1 workflow
Use a matrix variable to list target fedora versions
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
name: Build and provide rpm of the Gitea act_runner
|
||||
run-name: Build act_runner from ${{ gitea.repository }} on COPR
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: rawhide-minimal-copr
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
- name: Build src.rpm and send to COPR
|
||||
uses: https://git.demus.dk/actions/copr-build@main
|
||||
with:
|
||||
copr_config: ${{ secrets.COPR_API_CONFIG }}
|
||||
copr_project: gitea
|
||||
fedora_release: rawhide
|
||||
@@ -3,16 +3,20 @@ run-name: Build tea from ${{ gitea.repository }} on COPR
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
fedora_release:
|
||||
fedoraversion:
|
||||
type: choice
|
||||
description: "Choose a fedora release"
|
||||
required: true
|
||||
options:
|
||||
- "f43"
|
||||
- "rawhide"
|
||||
options: [ f43, f44, rawhide ]
|
||||
coprproject:
|
||||
type: choice
|
||||
description: "Which repo"
|
||||
required: true
|
||||
options: [ gitea, gitea-test ]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: ${{ inputs.fedora_release }}-minimal-copr
|
||||
coprbuild:
|
||||
name: "Start build on COPR"
|
||||
runs-on: ${{ inputs.fedoraversion }}-minimal-copr
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
@@ -20,5 +24,5 @@ jobs:
|
||||
uses: https://git.demus.dk/actions/copr-build@main
|
||||
with:
|
||||
copr_config: ${{ secrets.COPR_API_CONFIG }}
|
||||
copr_project: gitea
|
||||
fedora_release: ${{ inputs.fedora_release }}
|
||||
copr_project: ${{ inputs.coprproject }}
|
||||
fedora_release: ${{ inputs.fedoraversion }}
|
||||
|
||||
@@ -2,8 +2,12 @@ name: Build and provide rpm of the Gitea act_runner
|
||||
run-name: Build act_runner from ${{ gitea.repository }} on COPR
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
runs-on: f43-minimal-copr
|
||||
coprbuild:
|
||||
name: "Start build on COPR"
|
||||
strategy:
|
||||
matrix:
|
||||
fedoraversion: [ f43, f44, rawhide ]
|
||||
runs-on: ${{ matrix.fedoraversion }}-minimal-copr
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
@@ -12,4 +16,4 @@ jobs:
|
||||
with:
|
||||
copr_config: ${{ secrets.COPR_API_CONFIG }}
|
||||
copr_project: gitea
|
||||
fedora_release: f43
|
||||
fedora_release: ${{ matrix.fedoraversion }}
|
||||
@@ -0,0 +1,23 @@
|
||||
name: Build and provide rpm of Gitea act_runner
|
||||
run-name: Rpmbuild act_runner at ${{ gitea.repository }} by ${{ github.actor }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
runsonlabel:
|
||||
type: choice
|
||||
description: "Choose a label"
|
||||
required: true
|
||||
options: [ f43, f44, rawhide ]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
name: "Run rpmbuild"
|
||||
runs-on: ${{ inputs.runsonlabel }}-minimal-rpmbuild
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
- name: Build the rpms
|
||||
uses: https://git.demus.dk/actions/rpmbuild@main
|
||||
- name: Deploy to packages
|
||||
uses: https://git.demus.dk/actions/rpm-deploy@main
|
||||
with:
|
||||
pat: ${{ secrets.RPM_REPO_WRITE }}
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Build and provide rpm of the Gitea act_runner
|
||||
run-name: Rpmbuild act_runner by @${{ github.actor }}
|
||||
on: [release]
|
||||
jobs:
|
||||
rpmbuild:
|
||||
name: "Run rpmbuild"
|
||||
strategy:
|
||||
matrix:
|
||||
rpmbuilder: [ f43, f44, rawhide ]
|
||||
runs-on: ${{ matrix.rpmbuilder }}-minimal-rpmbuild
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://git.demus.dk/actions/git-clone@main
|
||||
- name: Build the rpms
|
||||
uses: https://git.demus.dk/actions/rpmbuild@main
|
||||
- name: Deploy to packages
|
||||
uses: https://git.demus.dk/actions/rpm-deploy@main
|
||||
with:
|
||||
pat: ${{ secrets.RPM_REPO_WRITE }}
|
||||
Reference in New Issue
Block a user