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

Merge branch 'main' into production

parents 08395a09 8560d6ad
No related branches found
No related tags found
No related merge requests found
default:
before_script:
- set -e
# env -0 | sort -z | tr '\0' '\n': Sort env output alphabetically, keeping multiline variables intact
# egrep: Remove sensitive information from the output of env
#- env -0 | sort -z | tr '\0' '\n' | egrep -ve '^(DOCKER_AUTH_CONFIG|GOOGLE_APPLICATION_CREDENTIALS)=.*'
# DANGER don't use `set -x` or print the environment via e.g. `env` in pipeline runs, this might leak credentials (has leaked them)
interruptible: true
tags:
- 1cpu-4gb # build on smaller machine
......@@ -49,7 +47,7 @@ variables:
## common steps
cache_lint_test:
image: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.2.3'
image: 'europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.2.5'
stage: 'test'
script:
- deno cache --allow-import --lock=deno.lock app/deps.ts app/dev_deps.ts
......@@ -156,14 +154,16 @@ staging_deploy:
url: https://staging.notifications.apis.holi.social
variables:
ENVIRONMENT_ID: staging
only:
- main
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: on_success
staging_smoketest:
extends: .smoketest
needs: ['staging_deploy']
only:
- main
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: on_success
resource_group: unified-api-staging
staging_trigger_unified-api_redeployment:
......@@ -174,8 +174,9 @@ staging_trigger_unified-api_redeployment:
forward:
yaml_variables: false
pipeline_variables: false
only:
- main
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: on_success
## production environment
......@@ -189,14 +190,16 @@ production_deploy:
url: https://production.notifications.apis.holi.social
variables:
ENVIRONMENT_ID: production
only:
- production
rules:
- if: $CI_COMMIT_BRANCH == "production"
when: on_success
production_smoketest:
extends: .smoketest
needs: ['production_deploy']
only:
- production
rules:
- if: $CI_COMMIT_BRANCH == "production"
when: on_success
production_trigger_unified-api_redeployment:
needs: ['production_smoketest']
......@@ -206,6 +209,7 @@ production_trigger_unified-api_redeployment:
forward:
yaml_variables: false
pipeline_variables: false
only:
- production
rules:
- if: $CI_COMMIT_BRANCH == "production"
when: on_success
resource_group: unified-api-production
FROM europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.2.3
FROM europe-north1-docker.pkg.dev/holi-shared/docker-hub-remote/denoland/deno:2.2.5
# The port that your application listens to.
EXPOSE 8005
......
......@@ -4,11 +4,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "6.24.0"
version = "6.25.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "6.24.0"
version = "6.25.0"
}
}
backend "gcs" {
......
......@@ -4,11 +4,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "6.24.0"
version = "6.25.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "6.24.0"
version = "6.25.0"
}
}
backend "gcs" {
......
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