Add workflows with template variables

This commit is contained in:
2025-03-24 00:01:38 +01:00
parent fceacbd420
commit 8a4d2f8802
7 changed files with 77 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
.gitea/workflows/*.yaml
README.md
+25
View File
@@ -0,0 +1,25 @@
name: Build and provide rpm of ${REPO_NAME}
run-name: Rpmbuild ${REPO_NAME} at ${{ gitea.repository }} by ${{ github.actor }}
on:
workflow_dispatch:
inputs:
runsonlabel:
type: choice
description: "Choose a label"
required: true
options:
- "f40-minimal-rpmbuild"
- "f41-minimal-rpmbuild"
- "f42-minimal-rpmbuild"
jobs:
rpmbuild:
runs-on: ${{ inputs.runsonlabel }}
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 }}
+15
View File
@@ -0,0 +1,15 @@
name: Build and provide rpm of ${REPO_NAME}
run-name: Rpmbuild ${REPO_NAME} by @${{ github.actor }}
on: [ release ]
jobs:
rpmbuild:
runs-on: f41-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 }}
+15
View File
@@ -0,0 +1,15 @@
name: Build and provide rpm of ${REPO_NAME}
run-name: Rpmbuild ${REPO_NAME} by @${{ github.actor }}
on: [ release ]
jobs:
rpmbuild:
runs-on: f42-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,15 @@
name: Build and provide rpm of ${REPO_NAME}
run-name: Rpmbuild ${REPO_NAME} by @${{ github.actor }}
on: [ release ]
jobs:
rpmbuild:
runs-on: rawhide-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 }}
+4
View File
@@ -20,6 +20,10 @@
# Go workspace file
go.work
go.work.sum
# env file
.env
# ---> VisualStudioCode
.vscode/*
+1 -3
View File
@@ -1,3 +1 @@
# golang-rpm
Template repo for golang fedora packaging
# ${REPO_NAME}