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
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Insights
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
78b56a93
Unverified
Commit
78b56a93
authored
1 year ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Add header to backports base template
parent
5e2ae63d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+1
-11
1 addition, 11 deletions
Makefile
backports/.Base.gitlab-ci.yml
+25
-0
25 additions, 0 deletions
backports/.Base.gitlab-ci.yml
backports/OpenTofu/Base.gitlab-ci.yml
+16
-2
16 additions, 2 deletions
backports/OpenTofu/Base.gitlab-ci.yml
with
42 additions
and
13 deletions
Makefile
+
1
−
11
View file @
78b56a93
...
@@ -24,17 +24,7 @@ BACKPORTS_BASE_FILE := $(BACKPORTS_BASE_DIR)/Base.gitlab-ci.yml
...
@@ -24,17 +24,7 @@ BACKPORTS_BASE_FILE := $(BACKPORTS_BASE_DIR)/Base.gitlab-ci.yml
# make it the standard `sed` binary (if you wish) or temporarily alias sed=gsed
# make it the standard `sed` binary (if you wish) or temporarily alias sed=gsed
backports
:
backports
:
@
mkdir
-p
$(
BACKPORTS_BASE_DIR
)
@
mkdir
-p
$(
BACKPORTS_BASE_DIR
)
@
echo
'variables:'
>
$(
BACKPORTS_BASE_FILE
)
@
cp
$(
BACKPORTS_DIR
)
/.Base.gitlab-ci.yml
$(
BACKPORTS_BASE_FILE
)
@
echo
' # OpenTofu CI/CD component version, see https://gitlab.com/components/opentofu/-/releases'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' VERSION: "0.1.0-alpha4"'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' # Compatible OpenTofu version, see https://gitlab.com/components/opentofu/-/releases'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' OPENTOFU_VERSION: "1.6.0"'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' # Job Image with `gitlab-tofu`'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' GITLAB_OPENTOFU_IMAGE: registry.gitlab.com/components/opentofu/gitlab-opentofu:$$VERSION-opentofu$$OPENTOFU_VERSION'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' # The relative path to the root directory of the OpenTofu project'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' TF_ROOT:
$${
CI_PROJECT_DIR
}
'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' # The name of the state file used by the GitLab Managed Terraform state backend'
>>
$(
BACKPORTS_BASE_FILE
)
@
echo
' TF_STATE_NAME: default'
>>
$(
BACKPORTS_BASE_FILE
)
@
sed
'1,/^---$$/d'
templates/full-pipeline.yml
>>
$(
BACKPORTS_BASE_FILE
)
@
sed
'1,/^---$$/d'
templates/full-pipeline.yml
>>
$(
BACKPORTS_BASE_FILE
)
@
sed
-i
$(
BACKPORTS_BASE_FILE
)
-e
's/$$\[\[ inputs.stage_validate \]\]/validate/'
@
sed
-i
$(
BACKPORTS_BASE_FILE
)
-e
's/$$\[\[ inputs.stage_validate \]\]/validate/'
@
sed
-i
$(
BACKPORTS_BASE_FILE
)
-e
's/$$\[\[ inputs.stage_build \]\]/build/'
@
sed
-i
$(
BACKPORTS_BASE_FILE
)
-e
's/$$\[\[ inputs.stage_build \]\]/build/'
...
...
This diff is collapsed.
Click to expand it.
backports/.Base.gitlab-ci.yml
0 → 100644
+
25
−
0
View file @
78b56a93
# This template is a port of the OpenTofu CI/CD component at
# https://gitlab.com/components/opentofu
# It is generated with the `make backports` command from that project.
#
# Please make sure to use the component when your project is hosted on GitLab.com
# or when you are willing to mirror the component project into your self-managed
# instance and use it from there.
#
# Attention: This template will be removed in favor of the OpenTofu CI/CD component as soon as components
# are available for self-managed instances.
#
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/OpenTofu/Base.gitlab-ci.yml
variables
:
# OpenTofu CI/CD component version, see https://gitlab.com/components/opentofu/-/releases
VERSION
:
"
0.1.0-alpha4"
# Compatible OpenTofu version, see https://gitlab.com/components/opentofu/-/releases
OPENTOFU_VERSION
:
"
1.6.0"
# Job Image with `gitlab-tofu`
GITLAB_OPENTOFU_IMAGE
:
registry.gitlab.com/components/opentofu/gitlab-opentofu:$$VERSION-opentofu$$OPENTOFU_VERSION
# The relative path to the root directory of the OpenTofu project
TF_ROOT
:
$${CI_PROJECT_DIR}
# The name of the state file used by the GitLab Managed Terraform state backend
TF_STATE_NAME
:
default
This diff is collapsed.
Click to expand it.
backports/OpenTofu/Base.gitlab-ci.yml
+
16
−
2
View file @
78b56a93
# This template is a port of the OpenTofu CI/CD component at
# https://gitlab.com/components/opentofu
# It is generated with the `make backports` command from that project.
#
# Please make sure to use the component when your project is hosted on GitLab.com
# or when you are willing to mirror the component project into your self-managed
# instance and use it from there.
#
# Attention: This template will be removed in favor of the OpenTofu CI/CD component as soon as components
# are available for self-managed instances.
#
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/OpenTofu/Base.gitlab-ci.yml
variables
:
variables
:
# OpenTofu CI/CD component version, see https://gitlab.com/components/opentofu/-/releases
# OpenTofu CI/CD component version, see https://gitlab.com/components/opentofu/-/releases
VERSION
:
"
0.1.0-alpha4"
VERSION
:
"
0.1.0-alpha4"
# Compatible OpenTofu version, see https://gitlab.com/components/opentofu/-/releases
# Compatible OpenTofu version, see https://gitlab.com/components/opentofu/-/releases
OPENTOFU_VERSION
:
"
1.6.0"
OPENTOFU_VERSION
:
"
1.6.0"
# Job Image with `gitlab-tofu`
# Job Image with `gitlab-tofu`
GITLAB_OPENTOFU_IMAGE
:
registry.gitlab.com/components/opentofu/gitlab-opentofu:$VERSION-opentofu$OPENTOFU_VERSION
GITLAB_OPENTOFU_IMAGE
:
registry.gitlab.com/components/opentofu/gitlab-opentofu:$
$
VERSION-opentofu$
$
OPENTOFU_VERSION
# The relative path to the root directory of the OpenTofu project
# The relative path to the root directory of the OpenTofu project
TF_ROOT
:
${CI_PROJECT_DIR}
TF_ROOT
:
$
${CI_PROJECT_DIR}
# The name of the state file used by the GitLab Managed Terraform state backend
# The name of the state file used by the GitLab Managed Terraform state backend
TF_STATE_NAME
:
default
TF_STATE_NAME
:
default
...
...
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