fix(ci): limit pages deployment to main branch commit

This commit is contained in:
MDLeom 2022-01-08 02:20:05 +00:00
parent 8c94ddba40
commit b122eb5686
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 5 additions and 0 deletions

View File

@ -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