Skip to content
Snippets Groups Projects
Commit 75fa79a1 authored by jurgenhaas's avatar jurgenhaas
Browse files

#66 Only deply on main branch, unless ENFORCE_DEPLOYMENT is set to 1

parent 1027123f
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ variables:
DISABLE_GITLAB_CI_TEST_SAST_SPOTBUGS: 1
DISABLE_GITLAB_CI_TEST_SECRET_DETECTION: 1
DISABLE_NODE_ACCESS_REBUILD: 0
ENFORCE_DEPLOYMENT: 0
ENVIRONMENT_NAME: ${PROJECT_NAME}/$CI_COMMIT_REF_NAME
ENVIRONMENT_URL: https://www.example.com/$SITE_NAME
IGNORE_COMPOSER_ABANDONED_AUDIT: 0
......
......@@ -644,6 +644,8 @@ Debug:
rules:
- if: '$DISABLE_DEPLOYMENT != "0"'
when: never
- if: '$CI_COMMIT_BRANCH != "main" && $ENFORCE_DEPLOYMENT != "1"'
when: never
- if: '$DISABLE_DEPLOYMENT_LOCAL != "1"'
when: on_success
dependencies:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment