diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index c7318c8..2819083 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -19,7 +19,7 @@ jobs: - uses: ./.github/actions/setup-mdbook with: - version: v0.4.40 # renovate: datasource=github-releases depName=rust-lang/mdbook + version: v0.4.42 # renovate: datasource=github-releases depName=rust-lang/mdbook - name: Build Book working-directory: docs diff --git a/.github/workflows/releaser-pleaser.yaml b/.github/workflows/releaser-pleaser.yaml index 753ca31..2e3e4cb 100644 --- a/.github/workflows/releaser-pleaser.yaml +++ b/.github/workflows/releaser-pleaser.yaml @@ -34,7 +34,7 @@ jobs: - run: ko build --bare --local --tags ci github.com/apricote/releaser-pleaser/cmd/rp - run: mkdir -p .github/actions/releaser-pleaser - - run: "sed -i 's|image: .*$|image: ghcr.io/apricote/releaser-pleaser:ci|g' action.yml" + - run: "sed -i 's|image: .*$|image: docker://ghcr.io/apricote/releaser-pleaser:ci|g' action.yml" # Dogfood the action to make sure it works for users. - name: releaser-pleaser 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/CHANGELOG.md b/CHANGELOG.md index 1f0ad20..4e3b5c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [v0.4.2](https://github.com/apricote/releaser-pleaser/releases/tag/v0.4.2) + +### Bug Fixes + +- **action**: container image reference used wrong syntax (#96) + ## [v0.4.1](https://github.com/apricote/releaser-pleaser/releases/tag/v0.4.1) ### Bug Fixes diff --git a/action.yml b/action.yml index f07a88b..76afadf 100644 --- a/action.yml +++ b/action.yml @@ -21,7 +21,7 @@ inputs: outputs: {} runs: using: 'docker' - image: ghcr.io/apricote/releaser-pleaser:v0.4.1 # x-releaser-pleaser-version + image: docker://ghcr.io/apricote/releaser-pleaser:v0.4.2 # x-releaser-pleaser-version args: - run - --forge=github 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 +> ```
-If you want to use `releaser-pleaser` on a self-managed GitLab instance, you need to mirror the GitLab.com component to your instance. See the official [GitLab documentation for details](https://docs.gitlab.com/ee/ci/components/#use-a-gitlabcom-component-in-a-self-managed-instance). +If you want to use `releaser-pleaser` on a self-managed GitLab instance, you need to mirror the GitLab.com component to your instance. See the official [GitLab documentation for details](https://docs.gitlab.com/ee/ci/components/#use-a-gitlabcom-component-in-a-self-managed-instance).
diff --git a/templates/run.yml b/templates/run.yml index 278a59a..3872f94 100644 --- a/templates/run.yml +++ b/templates/run.yml @@ -12,19 +12,17 @@ spec: description: 'List of files that are scanned for version references.' default: "" - stage: - default: build - description: 'Defines the build stage' # Remember to update docs/reference/gitlab-ci-component.md --- releaser-pleaser: - stage: $[[ inputs.stage ]] + stage: build + 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.1 # x-releaser-pleaser-version + name: ghcr.io/apricote/releaser-pleaser:v0.4.2 # x-releaser-pleaser-version entrypoint: [""] variables: GITLAB_TOKEN: $[[ inputs.token ]]