mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 13:21:00 +00:00
feat(gitlab): make job dependencies configurable and run immediately (#101)
In the CI/CD component, make the jobs `needs` setting configurable through an input and change the default to `[]`. This will cause the job to run immediately. Co-authored-by: jo <ljonas@riseup.net>
This commit is contained in:
parent
6c5bdfeee8
commit
e9b3ba8ea2
2 changed files with 12 additions and 2 deletions
|
|
@ -15,17 +15,23 @@ spec:
|
|||
stage:
|
||||
default: build
|
||||
description: 'Defines the build stage'
|
||||
|
||||
needs:
|
||||
default: [ ]
|
||||
type: array
|
||||
description: 'Dependencies of the created Job'
|
||||
# Remember to update docs/reference/gitlab-ci-component.md
|
||||
---
|
||||
|
||||
releaser-pleaser:
|
||||
stage: $[[ inputs.stage ]]
|
||||
needs: $[[ inputs.needs ]]
|
||||
rules:
|
||||
# There is no way to run a pipeline when the MR description is updated :(
|
||||
- if: $CI_COMMIT_BRANCH == "$[[ inputs.branch ]]"
|
||||
image:
|
||||
name: ghcr.io/apricote/releaser-pleaser:v0.4.2 # x-releaser-pleaser-version
|
||||
entrypoint: [""]
|
||||
entrypoint: [ "" ]
|
||||
variables:
|
||||
GITLAB_TOKEN: $[[ inputs.token ]]
|
||||
script:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue