Skip to content
Snippets Groups Projects
Commit 29b06bba authored by Sophia Kuhlmann's avatar Sophia Kuhlmann
Browse files

Merge branch 'main' into production

parents f0a08434 86e4a597
No related branches found
No related tags found
No related merge requests found
...@@ -9,9 +9,7 @@ stages: ...@@ -9,9 +9,7 @@ stages:
default: default:
before_script: before_script:
- set -eu - set -eu
# env -0 | sort -z | tr '\0' '\n': Sort env output alphabetically, keeping multiline variables intact # DANGER don't use `set -x` or print the environment via e.g. `env` in pipeline runs, this might leak credentials (has leaked them)
# egrep: Remove sensitive information from the output of env
#- env -0 | sort -z | tr '\0' '\n' | egrep -ve '^(DOCKER_AUTH_CONFIG|GOOGLE_APPLICATION_CREDENTIALS)=.*'
interruptible: true interruptible: true
tags: tags:
- 1cpu-4gb # build on smaller machine - 1cpu-4gb # build on smaller machine
...@@ -79,14 +77,16 @@ staging_deploy: ...@@ -79,14 +77,16 @@ staging_deploy:
url: https://development-chat.holi.social url: https://development-chat.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
production_deploy: production_deploy:
extends: .deploy extends: .deploy
...@@ -97,11 +97,13 @@ production_deploy: ...@@ -97,11 +97,13 @@ production_deploy:
url: https://chat.holi.social url: https://chat.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
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