Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
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
rc
Terraform Openstack
Merge requests
!39
Remove code that destroys TF resources after failure
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove code that destroys TF resources after failure
Feat-remove-unused-code
into
master
Overview
0
Commits
1
Pipelines
3
Changes
1
Merged
Eesaan Atluri
requested to merge
Feat-remove-unused-code
into
master
1 year ago
Overview
0
Commits
1
Pipelines
3
Changes
1
Expand
TF apply failure leads to pipeline exiting so remove TF destroy part that doesn't run
👍
0
👎
0
Merge request reports
Compare
master
version 1
cb4038e8
1 year ago
master (base)
and
latest version
latest version
dab53408
1 commit,
1 year ago
version 1
cb4038e8
1 commit,
1 year ago
1 file
+
1
−
10
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
1
−
10
Options
@@ -88,16 +88,7 @@ tf-apply:
@@ -88,16 +88,7 @@ tf-apply:
echo "image_ohpc defined as ${TF_VAR_image_ohpc}"
echo "image_ohpc defined as ${TF_VAR_image_ohpc}"
fi
fi
-
export TF_VAR_keypair_name="os-gen-keypair-$BUILD_DATE"
-
export TF_VAR_keypair_name="os-gen-keypair-$BUILD_DATE"
-
|
-
terraform apply -auto-approve
terraform apply -auto-approve
if [ $? -ne 0 ]; then
echo "Terraform apply failed. Running terraform destroy..."
terraform destroy -auto-approve
TF_SUCCESS=false
else
TF_SUCCESS=true
fi
echo "Terraform success: $TF_SUCCESS"
-
export instance_floating_ip=$(terraform output -raw floating_ip_ohpc)
-
export instance_floating_ip=$(terraform output -raw floating_ip_ohpc)
-
export instance_id=$(terraform output -raw xdmod_instance_id)
-
export instance_id=$(terraform output -raw xdmod_instance_id)
-
echo "instance_floating_ip=${instance_floating_ip}" | tee -a $CI_PROJECT_DIR/vars.env
-
echo "instance_floating_ip=${instance_floating_ip}" | tee -a $CI_PROJECT_DIR/vars.env
Loading