Skip to content
Snippets Groups Projects
Commit a81fa086 authored by Ole Langbehn's avatar Ole Langbehn
Browse files

fix: switch from deprecated only to rules, dont use changes rules on manual builds

parent 845dbc87
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,9 @@ staging_deploy:
extends: .deploy
variables:
ENVIRONMENT_ID: 'staging'
only:
- main
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: on_success
resource_group: staging
production_deploy:
......@@ -57,6 +58,7 @@ production_deploy:
needs: ["staging_deploy"]
variables:
ENVIRONMENT_ID: 'production'
only:
- main
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: on_success
resource_group: production
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