fix(ci): limit pages deployment to main branch commit
This commit is contained in:
parent
8c94ddba40
commit
b122eb5686
|
@ -26,5 +26,10 @@ pages:
|
|||
paths:
|
||||
- public
|
||||
|
||||
rules:
|
||||
# Only trigger through schedule job and "Run pipeline" in main branch
|
||||
- if: '$CI_COMMIT_REF_NAME == "main" && ($CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web")'
|
||||
when: always
|
||||
|
||||
include:
|
||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
||||
|
|
Loading…
Reference in New Issue