diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7fcba92..45c1a99 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ stages: [ release ] # and create a corresponding GitLab Release. create-release: stage: release + needs: [] image: registry.gitlab.com/gitlab-org/release-cli:v0.19.0 script: echo "Creating release $CI_COMMIT_TAG" rules: diff --git a/docs/tutorials/gitlab.md b/docs/tutorials/gitlab.md index 2e5ed72..ce2e869 100644 --- a/docs/tutorials/gitlab.md +++ b/docs/tutorials/gitlab.md @@ -63,19 +63,29 @@ In the section "Variables" click on the "Add variable" button to open the form f Create or open your `.gitlab-ci.yml` and add the following include to your configuration: ```yaml -stages: [build] - include: - component: $CI_SERVER_FQDN/apricote/releaser-pleaser/run@v0.4.0-beta.1 inputs: token: $RELEASER_PLEASER_TOKEN ``` -> You can set the `stage` input if you want to run `releaser-pleaser` during a different stage. +> You can override the `releaser-pleaser` job if you want to tweak the job definition: +> +> ```yaml +> stages: [release] +> +> include: +> - component: $CI_SERVER_FQDN/apricote/releaser-pleaser/run@v0.4.0-beta.1 +> inputs: +> token: $RELEASER_PLEASER_TOKEN +> +> releaser-pleaser: +> stage: release +> ```