You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
764 B
33 lines
764 B
name: Trigger COPR Build
|
|
|
|
on:
|
|
# Trigger on push to main branch
|
|
#push:
|
|
# branches:
|
|
# - main
|
|
# Enables manual triggering of the workflow
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-copr:
|
|
runs-on: ubuntu-latest
|
|
|
|
# Defines the Fedora container for this job
|
|
container:
|
|
image: fedora:latest
|
|
|
|
steps:
|
|
# 1. Install pre-requisites
|
|
- name: Install copr-cli
|
|
run: dnf install -y copr-cli git git-lfs
|
|
|
|
# 2. Checkout the repository
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
# 3. Run the build script
|
|
- name: Run COPR build script
|
|
run: ./build.sh
|
|
# Inject secrets into the container as environment variables
|
|
env:
|
|
COPR_CONFIG: ${{ secrets.COPR_CONFIG }}
|
|
|