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

Merge branch 'main' into production

parents 24903bd7 4a93dd62
No related branches found
No related tags found
No related merge requests found
...@@ -23,9 +23,7 @@ default: ...@@ -23,9 +23,7 @@ default:
- 1cpu-4gb # default small, configure more explicitly on specific jobs - 1cpu-4gb # default small, configure more explicitly on specific jobs
before_script: before_script:
- set -e - set -e
# 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)=.*'
stages: stages:
- prepare - prepare
......
...@@ -82,8 +82,9 @@ deploy:staging:infra: ...@@ -82,8 +82,9 @@ deploy:staging:infra:
environment: environment:
name: staging name: staging
url: https://staging.moderation.holi.social url: https://staging.moderation.holi.social
only: rules:
- main - if: $CI_COMMIT_BRANCH == "main"
when: on_success
### ###
# PRODUCTION # PRODUCTION
...@@ -94,5 +95,6 @@ deploy:production:infra: ...@@ -94,5 +95,6 @@ deploy:production:infra:
environment: environment:
name: production name: production
url: https://moderation.holi.social url: https://moderation.holi.social
only: rules:
- production - if: $CI_COMMIT_BRANCH == "production"
\ No newline at end of file when: on_success
...@@ -6,8 +6,10 @@ apps:prepare: ...@@ -6,8 +6,10 @@ apps:prepare:
- corepack enable - corepack enable
- corepack yarn install --immutable - corepack yarn install --immutable
rules: rules:
# Execute step if yarn.lock was changed or cache is missing # always run when triggered manually
# Inspired by https://gitlab.com/gitlab-org/gitlab/-/issues/244932#note_1727726890 - if: $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "web"
when: on_success
# only run on specific file changes when triggered by git push
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
changes: changes:
- yarn.lock - yarn.lock
......
1.11.0 1.11.2
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