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
f075272f
Commit
f075272f
authored
1 month ago
by
Zedic Birchler
Committed by
Timo Furrer
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: add rules input to module-release.yml
Changelog: added
parent
ef97387e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/module-release.yml
+10
-0
10 additions, 0 deletions
templates/module-release.yml
tests/integration-tests/ModuleRelease.gitlab-ci.yml
+1
-5
1 addition, 5 deletions
tests/integration-tests/ModuleRelease.gitlab-ci.yml
with
11 additions
and
5 deletions
templates/module-release.yml
+
10
−
0
View file @
f075272f
...
...
@@ -30,11 +30,21 @@ spec:
e.g. '0.1.0'
default
:
${CI_COMMIT_TAG}
rules
:
# FIXME: eventually, we'll want to define `null` as the default,
# but this is NOT support yet, see
# https://gitlab.com/gitlab-org/gitlab/-/issues/440468
default
:
[{
when
:
on_success
}]
type
:
array
description
:
'
Defines
the
`rules`
of
the
job.'
---
'
$[[
inputs.as
]]'
:
stage
:
$[[ inputs.stage ]]
image
:
debian:bookworm-slim
rules
:
$[[ inputs.rules ]]
variables
:
TAR_FILENAME
:
/tmp/${CI_PROJECT_NAME}-${CI_COMMIT_SHA}.tgz
GITLAB_TOFU_ROOT_DIR
:
$[[ inputs.root_dir ]]
...
...
This diff is collapsed.
Click to expand it.
tests/integration-tests/ModuleRelease.gitlab-ci.yml
+
1
−
5
View file @
f075272f
...
...
@@ -8,14 +8,10 @@ include:
root_dir
:
$TEST_GITLAB_TOFU_ROOT_DIR/modules/random-pet
module_system
:
$MODULE_SYSTEM
module_version
:
$MODULE_VERSION
rules
:
[{
when
:
always
}]
stages
:
[
release
,
destroy
]
# Required to run everything immediately, instead of manually.
module-release
:
rules
:
[{
when
:
always
}]
delete-module
:
stage
:
destroy
image
:
curlimages/curl:latest
...
...
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