Skip to content
Snippets Groups Projects

Pipeline

Closed Gideon Bensch requested to merge s76867/webservice-devops:pipeline into main
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
# mostly from https://github.com/lucendio/lecture-devops-code/blob/911cb6dab66674aa71789568494a27dc58108491/exercises/define-and-run-pipeline/.gitlab-ci.yml#L46:L67
# mostly from https://github.com/lucendio/lecture-devops-code/blob/911cb6dab66674aa71789568494a27dc58108491/exercises/define-and-run-pipeline/.gitlab-ci.yml#L46:L67
# Run pipeline if committed to "pipeline" branch
# Run pipeline if pushed to "pipeline" branch
workflow:
workflow:
rules:
rules:
- if: >-
- if: >-
$CI_PIPELINE_SOURCE == "commit"
$CI_PIPELINE_SOURCE == "push"
&& ($CI_COMMIT_BRANCH == "pipeline")
&& ($CI_COMMIT_BRANCH == "pipeline")
when: always
when: always
# Otherwise
# Otherwise
Loading