| @@ -0,0 +1,24 @@ | |||
| 1 | + | .builds: &builds # anchor definition | |
| 2 | + | - "rhel8" | |
| 3 | + | - "rhel9" | |
| 4 | + | - "rocky8" | |
| 5 | + | - "rocky9" | |
| 6 | + | - "ubuntu2204" | |
| 7 | + | - "ubuntu2404" | |
| 8 | + | ||
| 9 | + | .watch_paths: # custom tag | |
| 10 | + | - builds/** | |
| 11 | + | - scripts/** | |
| 12 | + | - .gitlab-ci.yml | |
| 13 | + | ||
| 14 | + | build_templates: | |
| 15 | + | rules: | |
| 16 | + | - if: $CI_PIPELINE_SOURCE = "merge_request_event" | |
| 17 | + | changes: | |
| 18 | + | compare_to: 'refs/heads/main' | |
| 19 | + | paths: !reference [.watch_paths] # reference to tag | |
| 20 | + | parallel: | |
| 21 | + | matrix: | |
| 22 | + | - BUILD: *builds # anchor invokation | |
| 23 | + | script: | |
| 24 | + | - /bin/build.sh $BUILD | |
john / Gitlab CI YAML
Last active 5 months ago
john revised this gist 2 years ago · e755da6
1 file changed, 24 insertions