GitLab Release CLI tool (deprecated)
This feature was deprecated in GitLab 18.0 and is planned for removal in 20.0. Use the GitLab CLI instead.
This change is a breaking change.
Migrate from release-cli to glab CLI
To migrate from release-cli to glab CLI,
update your CI/CD job with the release keyword to use the cli:latest image:
release_job:
  stage: release
  image: registry.gitlab.com/gitlab-org/cli:latest
  rules:
    - if: $CI_COMMIT_TAG
  script:
    - echo "Running the release job."
  release:
    tag_name: $CI_COMMIT_TAG
    name: 'Release $CI_COMMIT_TAG'
    description: 'Release created using the CLI.'For more information, see release.
Fall back to release-cli
CI/CD jobs that use the release keyword use a script that falls back to using release-cli
if the required glab version is not available on the runner. The fallback logic
is a safe-guard to ensure that projects that have not yet migrated to use glab CLI
can continue working.
This fallback is scheduled to be removed
in GitLab 20.0 with the removal of release-cli.