Skip to content
Snippets Groups Projects
Commit f075272f authored by Zedic Birchler's avatar Zedic Birchler Committed by Timo Furrer
Browse files

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
......@@ -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 ]]
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment