Skip to content

Instantly share code, notes, and snippets.

@hennevogel
Last active April 7, 2021 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hennevogel/890401ce05d8b194c34a12fd85d3159a to your computer and use it in GitHub Desktop.
Save hennevogel/890401ce05d8b194c34a12fd85d3159a to your computer and use it in GitHub Desktop.
pull-request: # The workflow name
runs_on: pull_request # limits this workflow to this Github/Gitlab event
project: home:hennevogel:myfirstproject:$PR_NUMBER # operates on this project
prjconf: dist/obs/prjconf # Will add the content of this file inside the SCM as prjconf
steps:
repositories: # runs @project.repositores.create(...)
- project: openSUSE_Factory
repo: standard
arch: x86_64
flags: # runs @project.flags.create(...)
- flag: build
status: disable
arch: aarch64
repository: Fedora_30
branch: # runs BranchPackage(...)
- home:hennevogel:myfirstproject / ctris
- openSUSE:Factory / libfoo
run_services: # runs Backend::Api::Sources::Package.trigger_services(...)
- ctris: true
main: # Token::Service / Token::Rebuild replacement
runs_on: push
branches: # Only run this workflow on branches matching this regex
only: main
project: home:hennevogel:myfirstproject
package: ctris
steps:
run_services:
- ctris
rebuid:
- libfoo
branch: # E.g. automatically setup branch/tag projects
runs_on: create
branches: # Run this workflow on all branches but the one matching this regex
ignore: depfu/.*
project: home:hennevogel:myfirstproject:$BRANCH_NAME
prjconf: dist/obs/prjconf
steps:
copypac: # runs Backend::Api::Sources::Package.copy(...)
- home:hennevogel:myfirstproject / ctris
- openSUSE:Factory / libfoo
repositories: # runs @project.repositores.create(...)
- project: openSUSE_Factory
repo: standard
arch: x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment