Skip to content

fix(ci): use official release-cli image for release:create

Jérôme Revillard requested to merge fix/release-cli-image into main

Problem

release:create job fails on every tagged release with:

release-cli: not found (exit 127)

The GitLab Runner (Docker executor, 18.11.3) does not inject the release-cli binary into job containers. The release: keyword runs release-cli create but the binary is absent.

Observed on pipeline #5736 (tag v2.0.1): promote stage succeeded (16 images tagged v2.0.1 + latest), only GitLab Release creation failed.

Fix

Pin the job to the official release-cli image so the binary is always present in the container, independent of runner injection:

image: registry.gitlab.com/gitlab-org/release-cli:latest

Impact

  • Future tags (v2.0.2, v2.1.0, ...) get a GitLab Release created automatically.
  • No changelog entry (Keep a Changelog: CI-only change).
  • v2.0.1 release already created manually via API.

Merge request reports

Loading