GitLab CI/CD 1 · When jobs run
Run only on the default branch
Use rules to control when a job is added to the pipeline.
deploy-job:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Official GitLab CI/CD 1 documentation
GitLab CI/CD 1 · When jobs run
Use rules to control when a job is added to the pipeline.
deploy-job:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Official GitLab CI/CD 1 documentation
Was this page helpful?