Skip to content

Dogfood GitLab release generation from YAML file

Dogfood GitLab Release Generation from Yaml File

What is the release-cli?

GitLab Release command-line tool

Why should we dogfood this?

This is the first on Creating a Release from Yaml File. Expanding the release-cli usage throughout other GitLab projects will allow ~"group::release management" to gather feedback on this tool.

How do I dogfood this?

Using the Release CLI in GitLab CI

Video walkthrough

Consider reviewing the release-cli issues and contribute your ideas, report issues or submit an MR!

Consider starting a discussion on this issue with:

  • What works well
  • What needs improvement
  • What should we work on next to improve this tool

TL;DR

Add a release stage and step to your .gitlab-ci.yml:

release:
  stage: release
  image: registry.gitlab.com/gitlab-org/release-cli:v0.1.0
  when: manual
  # We recommend the use of `except: tags` to prevent these pipelines
  # from running. See the notes section below for details.
  except:
    - tags
  script:
    - release-cli create --name "My Awesome Release v1.0.0" --description "This is a release created with GitLab's release-cli" --tag-name v1.0.0 --ref $CI_COMMIT_SHA

This tool is still in development and some breaking changes may occur. For more information about this project please read the docs


The following discussion from !6 (merged) should be addressed:

  • @steveazz started a discussion: (+1 comment)

    Do we plan to leave it here, or move it out? I feel like leaving it here might cause problems and noise for users looking at our release page 🤔

Edited by Jaime Martinez