Releases


Releases

Pipeline jobs can create releases

…by adding the release keyword

Release assets can be linked but must be stored elsewhere

release uses release-cli internally

Container images are publicly available

registry.gitlab.com/gitlab-org/release-cli:v0.11.0

Runners using the shell executor must have release-cli installed


Hands-On

  1. Extends pages in .gitlab-ci.yml:

     pages:
       #...
       release:
         tag_name: ${CI_PIPELINE_IID}
         name: Release ${CI_PIPELINE_IID}
         description: |
           Some multi
           line text
         ref: ${CI_COMMIT_SHA}
    
  2. Go to Deployments > Releases