Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
devops
ci-repos
scripts
Merge requests
!15
Resolve "Write out Terraform outputs"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Write out Terraform outputs"
6-write-out-terraform-outputs
into
master
Overview
3
Commits
3
Pipelines
0
Changes
1
Merged
Harry Milne
requested to merge
6-write-out-terraform-outputs
into
master
11 months ago
Overview
3
Commits
3
Pipelines
0
Changes
1
Expand
Closes
#6 (closed)
0
0
Merge request reports
Viewing commit
f370be62
Prev
Next
Show latest version
1 file
+
6
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
f370be62
write outputs to json if var set
· f370be62
Harry Milne
authored
11 months ago
deploy.sh
+
6
−
2
Options
@@ -162,7 +162,11 @@ if [ -z "$DEPLOY_NO_UPDATE" ]; then
fi
if
[
-z
"
$DEPLOY_PLAN_ONLY
"
]
;
then
exec
/usr/bin/terragrunt apply
-lock-timeout
=
15m
--terragrunt-download-dir
/home/gitlab-runner/.terragrunt-cache
-auto-approve
/usr/bin/terragrunt apply
-lock-timeout
=
15m
--terragrunt-download-dir
/home/gitlab-runner/.terragrunt-cache
-auto-approve
else
exec
/usr/bin/terragrunt plan
-lock-timeout
=
15m
--terragrunt-download-dir
/home/gitlab-runner/.terragrunt-cache
/usr/bin/terragrunt plan
-lock-timeout
=
15m
--terragrunt-download-dir
/home/gitlab-runner/.terragrunt-cache
fi
if
[
"
$DEPLOY_JSON_OUTPUT
"
]
;
then
/usr/bin/terragrunt output
-json
-no-color
>
output.json
fi
Loading