john

john / Gitlab CI YAML

Last active 5 months ago

Like 0

Revision e755da695451acd21acb5c28f790b53a36997640

.gitlab-ci.yaml Raw
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
14build_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