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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
components
OpenTofu
Commits
72675b76
Commit
72675b76
authored
10 months ago
by
Timo Furrer
Browse files
Options
Downloads
Plain Diff
Add support for job name prefix in full-pipeline
See merge request components/opentofu!153 Changelog: feature
parents
b4270dc5
295afe6f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/full-pipeline.yml
+10
-7
10 additions, 7 deletions
templates/full-pipeline.yml
with
10 additions
and
7 deletions
templates/full-pipeline.yml
+
10
−
7
View file @
72675b76
...
...
@@ -76,6 +76,9 @@ spec:
description
:
'
Image
digest
of
the
image
you
want
to
use.
The
format
must
be
`@<image_digest>`,
e.g.
`@sha256:abc..`,
see
regex
of
this
input.
Please
consult
the
release
page
at
https://gitlab.com/components/opentofu/-/releases
to
obtain
the
image
digests.'
# Configuration
job_name_prefix
:
default
:
'
'
description
:
'
Prefix
for
all
job
names.
Jobs
will
be
hidden
if
leading
with
a
dot
`.`.'
root_dir
:
default
:
${CI_PROJECT_DIR}
description
:
'
Root
directory
for
the
OpenTofu
project.'
...
...
@@ -99,7 +102,7 @@ spec:
include
:
-
local
:
'
/templates/fmt.yml'
inputs
:
as
:
'
fmt'
as
:
'
$[[
inputs.job_name_prefix
]]
fmt'
stage
:
$[[ inputs.stage_validate ]]
version
:
$[[ inputs.version ]]
base_os
:
$[[ inputs.base_os ]]
...
...
@@ -110,7 +113,7 @@ include:
root_dir
:
$[[ inputs.root_dir ]]
-
local
:
'
/templates/validate.yml'
inputs
:
as
:
'
validate'
as
:
'
$[[
inputs.job_name_prefix
]]
validate'
stage
:
$[[ inputs.stage_validate ]]
version
:
$[[ inputs.version ]]
base_os
:
$[[ inputs.base_os ]]
...
...
@@ -122,7 +125,7 @@ include:
state_name
:
$[[ inputs.state_name ]]
-
local
:
'
/templates/test.yml'
inputs
:
as
:
'
test'
as
:
'
$[[
inputs.job_name_prefix
]]
test'
stage
:
$[[ inputs.stage_test ]]
version
:
$[[ inputs.version ]]
base_os
:
$[[ inputs.base_os ]]
...
...
@@ -137,7 +140,7 @@ include:
-
$[[ inputs.root_dir ]]/**/*.tftest.hcl
-
local
:
'
/templates/plan.yml'
inputs
:
as
:
'
plan'
as
:
'
$[[
inputs.job_name_prefix
]]
plan'
stage
:
$[[ inputs.stage_build ]]
version
:
$[[ inputs.version ]]
base_os
:
$[[ inputs.base_os ]]
...
...
@@ -150,7 +153,7 @@ include:
artifacts_access
:
$[[ inputs.plan_artifacts_access ]]
-
local
:
'
/templates/apply.yml'
inputs
:
as
:
'
apply'
as
:
'
$[[
inputs.job_name_prefix
]]
apply'
stage
:
$[[ inputs.stage_deploy ]]
version
:
$[[ inputs.version ]]
base_os
:
$[[ inputs.base_os ]]
...
...
@@ -163,7 +166,7 @@ include:
auto_apply
:
$[[ inputs.auto_apply ]]
-
local
:
'
/templates/destroy.yml'
inputs
:
as
:
'
destroy'
as
:
'
$[[
inputs.job_name_prefix
]]
destroy'
stage
:
$[[ inputs.stage_cleanup ]]
version
:
$[[ inputs.version ]]
base_os
:
$[[ inputs.base_os ]]
...
...
@@ -176,7 +179,7 @@ include:
auto_destroy
:
$[[ inputs.auto_destroy ]]
-
local
:
'
/templates/delete-state.yml'
inputs
:
as
:
'
delete-state'
as
:
'
$[[
inputs.job_name_prefix
]]
delete-state'
stage
:
$[[ inputs.stage_cleanup ]]
state_name
:
$[[ inputs.state_name ]]
...
...
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
sign in
to comment