mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 16:00:31 -05:00
Update 2 files
- /job-templates.tpl.yml - /scripts/render-pipelines-branch.sh
This commit is contained in:
parent
fd1f95c73b
commit
b5d15595f8
2 changed files with 25 additions and 0 deletions
13
scripts/render-pipelines-branch.sh
Normal file
13
scripts/render-pipelines-branch.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
#%%MULTILINE_YAML_START
|
||||
#Replace main branch with current branch
|
||||
|
||||
for file in pipelines/*.yml
|
||||
do
|
||||
sed -i "s;ref: 'main';ref: '$CI_COMMIT_BRANCH';g" ./$file
|
||||
done
|
||||
|
||||
for file in compliance/*.yml
|
||||
do
|
||||
sed -i "s;ref: 'main';ref: '$CI_COMMIT_BRANCH';g" ./$file
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue