Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-unified-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-unified-api
Commits
9545981f
Commit
9545981f
authored
4 months ago
by
Ole Langbehn
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into NOISSUE_quote-environment-variables-in-ci
parents
715d8be9
b1945c2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci.yml
terraform/environments/scripts/create-or-update-env.sh
+1
-1
1 addition, 1 deletion
terraform/environments/scripts/create-or-update-env.sh
with
3 additions
and
4 deletions
.gitlab-ci.yml
+
2
−
3
View file @
9545981f
...
...
@@ -189,13 +189,12 @@ destroy_review:
-
cd main-clone
-
terraform/environments/scripts/destroy-env.sh "$CI_ENVIRONMENT_SLUG"
# can't use rules here: https://gitlab.com/gitlab-org/gitlab/-/issues/34077
when
:
manual
allow_failure
:
false
allow_failure
:
true
rules
:
-
if
:
$CI_COMMIT_BRANCH =~ /^main$|^production$|^noenv\/.*/
when
:
never
-
if
:
$CI_COMMIT_BRANCH
when
:
on_success
when
:
manual
resource_group
:
$ENVIRONMENT_ID
# never execute terraform in parallel on the same environment
interruptible
:
false
...
...
This diff is collapsed.
Click to expand it.
terraform/environments/scripts/create-or-update-env.sh
+
1
−
1
View file @
9545981f
...
...
@@ -13,6 +13,6 @@ TAG=$2
TF_LOG_PATH
=
terraform-init.log terraform init
TF_LOG_PATH
=
terraform-version.log terraform version
TF_LOG_PATH
=
terraform-workspace.log terraform workspace
new
"
$WORKSPACE
"
||
terraform workspace
select
"
$WORKSPACE
"
TF_LOG_PATH
=
terraform-workspace.log terraform workspace
select
-or-create
=
true
"
$WORKSPACE
"
TF_LOG_PATH
=
terraform-plan.log terraform plan
-var
=
"image_tag=
$TAG
"
-out
plan
-no-color
|
tee
tfplan.plain
TF_LOG_PATH
=
terraform-apply.log terraform apply
-auto-approve
-parallelism
=
50 plan
\ No newline at end of file
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