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:
|
|
|
|
|
description: 'List of files that are scanned for version references.'
|
|
|
|
|
default: ""
|
|
|
|
|
|
|
|
|
|
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 ]]
|
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 ]]"
|
|
|
|
|
image:
|
2025-05-22 15:38:41 +02:00
|
|
|
name: ghcr.io/apricote/releaser-pleaser:v0.5.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 ]] \
|
2024-09-15 20:59:17 +02:00
|
|
|
--extra-files="$[[ inputs.extra-files ]]"
|