Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Opentofu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Components
Opentofu
Commits
99bc57dc
Unverified
Commit
99bc57dc
authored
1 year ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Fix rules in delete-state job
parent
3640c6a4
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
backports/.Base.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
backports/.Base.gitlab-ci.yml
backports/OpenTofu/Base.gitlab-ci.yml
+1
-3
1 addition, 3 deletions
backports/OpenTofu/Base.gitlab-ci.yml
templates/full-pipeline.yml
+0
-2
0 additions, 2 deletions
templates/full-pipeline.yml
with
2 additions
and
6 deletions
backports/.Base.gitlab-ci.yml
+
1
−
1
View file @
99bc57dc
...
...
@@ -14,7 +14,7 @@
variables
:
# OpenTofu CI/CD component version, see https://gitlab.com/components/opentofu/-/releases
VERSION
:
"
0.1.0
"
VERSION
:
"
latest
"
# Compatible OpenTofu version, see https://gitlab.com/components/opentofu/-/releases
OPENTOFU_VERSION
:
"
1.6.0"
# Job Image with `gitlab-tofu`
...
...
This diff is collapsed.
Click to expand it.
backports/OpenTofu/Base.gitlab-ci.yml
+
1
−
3
View file @
99bc57dc
...
...
@@ -14,7 +14,7 @@
variables
:
# OpenTofu CI/CD component version, see https://gitlab.com/components/opentofu/-/releases
VERSION
:
"
0.1.0
"
VERSION
:
"
latest
"
# Compatible OpenTofu version, see https://gitlab.com/components/opentofu/-/releases
OPENTOFU_VERSION
:
"
1.6.0"
# Job Image with `gitlab-tofu`
...
...
@@ -149,8 +149,6 @@ variables:
extends
:
.opentofu:default
stage
:
cleanup
resource_group
:
$TF_STATE_NAME
rules
:
-
when
:
never
script
:
-
curl --request DELETE -u "gitlab-ci-token:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/terraform/state/$TF_STATE_NAME"
rules
:
...
...
This diff is collapsed.
Click to expand it.
templates/full-pipeline.yml
+
0
−
2
View file @
99bc57dc
...
...
@@ -161,8 +161,6 @@ delete-state:
stage
:
$[[ inputs.stage_cleanup ]]
needs
:
[
destroy
]
resource_group
:
$[[ inputs.state_name ]]
rules
:
-
when
:
never
script
:
-
curl --request DELETE -u "gitlab-ci-token:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/terraform/state/$[[ inputs.state_name ]]"
rules
:
...
...
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