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