Skip to content
Snippets Groups Projects
Commit 2c5a45f9 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 c9e83fbd
No related branches found
No related tags found
No related merge requests found
...@@ -156,14 +156,16 @@ staging_deploy: ...@@ -156,14 +156,16 @@ staging_deploy:
url: https://staging.notifications.apis.holi.social url: https://staging.notifications.apis.holi.social
variables: variables:
ENVIRONMENT_ID: staging ENVIRONMENT_ID: staging
only: rules:
- main - if: $CI_COMMIT_BRANCH == "main"
when: on_success
staging_smoketest: staging_smoketest:
extends: .smoketest extends: .smoketest
needs: ['staging_deploy'] needs: ['staging_deploy']
only: rules:
- main - if: $CI_COMMIT_BRANCH == "main"
when: on_success
resource_group: unified-api-staging resource_group: unified-api-staging
staging_trigger_unified-api_redeployment: staging_trigger_unified-api_redeployment:
...@@ -174,8 +176,9 @@ staging_trigger_unified-api_redeployment: ...@@ -174,8 +176,9 @@ staging_trigger_unified-api_redeployment:
forward: forward:
yaml_variables: false yaml_variables: false
pipeline_variables: false pipeline_variables: false
only: rules:
- main - if: $CI_COMMIT_BRANCH == "main"
when: on_success
## production environment ## production environment
...@@ -189,14 +192,16 @@ production_deploy: ...@@ -189,14 +192,16 @@ production_deploy:
url: https://production.notifications.apis.holi.social url: https://production.notifications.apis.holi.social
variables: variables:
ENVIRONMENT_ID: production ENVIRONMENT_ID: production
only: rules:
- production - if: $CI_COMMIT_BRANCH == "production"
when: on_success
production_smoketest: production_smoketest:
extends: .smoketest extends: .smoketest
needs: ['production_deploy'] needs: ['production_deploy']
only: rules:
- production - if: $CI_COMMIT_BRANCH == "production"
when: on_success
production_trigger_unified-api_redeployment: production_trigger_unified-api_redeployment:
needs: ['production_smoketest'] needs: ['production_smoketest']
...@@ -206,6 +211,7 @@ production_trigger_unified-api_redeployment: ...@@ -206,6 +211,7 @@ production_trigger_unified-api_redeployment:
forward: forward:
yaml_variables: false yaml_variables: false
pipeline_variables: false pipeline_variables: false
only: rules:
- production - if: $CI_COMMIT_BRANCH == "production"
when: on_success
resource_group: unified-api-production resource_group: unified-api-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