Files
yml/job-templates.tpl.yml
DeveloperDurp b5d15595f8 Update 2 files
- /job-templates.tpl.yml
- /scripts/render-pipelines-branch.sh
2023-07-29 12:38:06 +00:00

40 lines
1.2 KiB
YAML

# stages are intentionally not defined, as users need to combine the full list
#stages:
# - test
# - render
workflow:
rules:
# those rules exclude the render commits which are manually triggered in commit-and-push-changes.sh
# being so strict about it prevents "skipped merge request pipelines" which block merging as they're preferred
- if: '$CI_COMMIT_BRANCH && $CI_SCRIPTS_SKIP_PIPELINE != "true"'
render-job-templates-yml:
stage: render
image: registry.durp.info/debian:bullseye-slim
script:
- ./scripts/install-curl.sh
- ./scripts/install-git.sh
- ./scripts/install-yq.sh
- ./scripts/render-job-templates.sh
- ./scripts/commit-and-push-changes.sh
rules:
- if: $CI_COMMIT_BRANCH
changes:
- .gitlab-ci.yml
- scripts/**
- templates/**
- job-templates.yml
- job-templates.tpl.yml
render-pipelines-to-branch:
stage: render
image: "${CI_REGISTRY}/containerized-applications/ci-images/ci-scripts:1.0.2"
script:
- ./scripts/install-curl.sh
- ./scripts/install-git.sh
- ./scripts/install-yq.sh
- ./scripts/render-pipelines-branch.sh
- ./scripts/commit-and-push-changes.sh
rules:
- if: $CI_COMMIT_BRANCH =~ /^release*/