[ci] feat: improve readibility on gitlab run rules

This commit is contained in:
Simon Cornet 2024-12-14 11:32:46 +01:00
commit 52d8aa5ac9
2 changed files with 5 additions and 2 deletions

View file

@ -7,7 +7,9 @@ deployment:
name: "cr.simoncor.net/siempie/ansible-deployment:latest"
entrypoint: ["/bin/sh", "-c"]
rules:
- if: '$CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_PIPELINE_SOURCE == "push"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- when: "never"