Add workflows

This commit is contained in:
2026-03-20 22:13:53 +01:00
parent 15dc25885f
commit 9d547fab46
5 changed files with 92 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
.gitea/workflows/*.yaml
README.md
LICENSE
+28
View File
@@ -0,0 +1,28 @@
name: Build and provide rpm of ${REPO_NAME}
run-name: Build ${REPO_NAME} from $${{ gitea.repository }} on COPR by $${{ github.actor }}
on:
workflow_dispatch:
inputs:
fedoraversion:
type: choice
description: "Choose a fedora version"
required: true
options: [ f42, f43, rawhide ]
coprproject:
type: choice
description: "Which repo"
required: true
options: [ packages, packages-test ]
jobs:
coprbuild:
name: Build src rpm and send it to COPR
runs-on: $${{ inputs.fedoraversion }}-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: $${{ inputs.coprproject }}
fedora_release: $${{ inputs.fedoraversion }}
+19
View File
@@ -0,0 +1,19 @@
name: Build and provide rpm of ${REPO_NAME}
run-name: Build ${REPO_NAME} from $${{ gitea.repository }} on COPR by $${{ github.actor }}
on: [release]
jobs:
coprbuild:
name: Build src rpm and send it to COPR
strategy:
matrix:
fedoraversion: [ f42, f43, rawhide ]
runs-on: $${{ matrix.fedoraversion }}-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: packages
fedora_release: $${{ matrix.fedoraversion }}
+23
View File
@@ -0,0 +1,23 @@
name: Build and provide rpm of ${REPO_NAME}
run-name: Rpmbuild ${REPO_NAME} at $${{ gitea.repository }} by $${{ github.actor }}
on:
workflow_dispatch:
inputs:
fedoraversion:
type: choice
description: "Choose a fedora version"
required: true
options: [ f42, f43, rawhide ]
jobs:
rpmbuild:
name: Build and deploy an rpm to the demus.dk repo
runs-on: $${{ inputs.fedoraversion }}-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 }}
+19
View File
@@ -0,0 +1,19 @@
name: Build and provide rpm of ${REPO_NAME}
run-name: Rpmbuild ${REPO_NAME} by $${{ github.actor }} by $${{ github.actor }}
on: [ release ]
jobs:
rpmbuild:
name: Build and deploy an rpm to the demus.dk repo
strategy:
matrix:
fedoraversion: [ f42, f43, rawhide ]
runs-on: $${{ matrix.fedoraversion }}-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 }}