Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-geo-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-geo-api
Commits
07ee22cd
Commit
07ee22cd
authored
1 week ago
by
Sophia Kuhlmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into production
parents
baebf74b
b8268892
Branches
production
Branches containing commit
Tags
release/1.52.0
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+19
-15
19 additions, 15 deletions
.gitlab-ci.yml
terraform/common/init.tf
+2
-2
2 additions, 2 deletions
terraform/common/init.tf
terraform/environments/init.tf
+2
-2
2 additions, 2 deletions
terraform/environments/init.tf
with
23 additions
and
19 deletions
.gitlab-ci.yml
+
19
−
15
View file @
07ee22cd
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
...
...
@@ -156,14 +154,16 @@ staging_deploy:
url
:
https://staging.geo.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.geo.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
This diff is collapsed.
Click to expand it.
terraform/common/init.tf
+
2
−
2
View file @
07ee22cd
...
...
@@ -4,11 +4,11 @@ terraform {
required_providers
{
google
=
{
source
=
"hashicorp/google"
version
=
"6.2
4
.0"
version
=
"6.2
5
.0"
}
google-beta
=
{
source
=
"hashicorp/google-beta"
version
=
"6.2
4
.0"
version
=
"6.2
5
.0"
}
}
backend
"gcs"
{
...
...
This diff is collapsed.
Click to expand it.
terraform/environments/init.tf
+
2
−
2
View file @
07ee22cd
...
...
@@ -4,11 +4,11 @@ terraform {
required_providers
{
google
=
{
source
=
"hashicorp/google"
version
=
"6.2
4
.0"
version
=
"6.2
5
.0"
}
google-beta
=
{
source
=
"hashicorp/google-beta"
version
=
"6.2
4
.0"
version
=
"6.2
5
.0"
}
}
backend
"gcs"
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment