2024-09-15 18:54:38 +02:00
spec :
inputs :
# Remember to update docs/reference/gitlab-ci-component.md
branch :
default : main
description : "This branch is used as the target for releases."
token :
description : "GitLab token for creating and updating release MRs."
extra-files :
2025-08-23 22:14:34 +02:00
description : 'List of files that are scanned for version references by the generic updater.'
2024-09-15 18:54:38 +02:00
default : ""
2025-08-23 22:14:34 +02:00
updaters :
description : "List of updaters that are run. Default updaters can be removed by specifying them as -name. Multiple updaters should be concatenated with a comma. Default Updaters: changelog,generic"
default : ""
2025-08-23 22:05:52 +02:00
2024-09-15 18:54:38 +02:00
stage :
default : build
description : 'Defines the build stage'
2024-11-15 17:51:54 +01:00
needs :
default : [ ]
type : array
description : 'Dependencies of the created Job'
2024-09-15 18:54:38 +02:00
# Remember to update docs/reference/gitlab-ci-component.md
---
releaser-pleaser :
stage : $[[ inputs.stage ]]
2024-11-15 17:51:54 +01:00
needs : $[[ inputs.needs ]]
2025-06-14 15:43:35 +02:00
2024-09-15 18:54:38 +02:00
rules :
# There is no way to run a pipeline when the MR description is updated :(
- if : $CI_COMMIT_BRANCH == "$[[ inputs.branch ]]"
2025-06-14 15:43:35 +02:00
# If a newer releaser-pleaser job runs, this one may be cancelled without problem, releaser-pleaser is idempotent.
# This only works if the user enables "auto-cancel redundant pipelines", which we do tell them to, because this is
# intrusive and up to the user.
interruptible : true
# No need to have multiple releaser-pleaser jobs running at the same time. They all act on the same global state.
resource_group : releaser-pleaser
2024-09-15 18:54:38 +02:00
image :
2025-07-11 11:32:09 +02:00
name : ghcr.io/apricote/releaser-pleaser:v0.6.1 # x-releaser-pleaser-version
2024-11-15 17:51:54 +01:00
entrypoint : [ "" ]
2024-09-15 18:54:38 +02:00
variables :
GITLAB_TOKEN : $[[ inputs.token ]]
script :
- |
rp run \
--forge=gitlab \
--branch=$[[ inputs.branch ]] \
2025-08-23 22:05:52 +02:00
--extra-files="$[[ inputs.extra-files ]]" \
2025-08-23 22:14:34 +02:00
--updaters="$[[ inputs.updaters ]]"