Show release notes on deployment approval page for tagged deployments
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.
What does this MR do and why?
Show release notes on deployment approval page for tagged deployments
Closes: #493260
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
before.mov | after.mp4 |
How to set up and validate locally
-
Premium licence is required.
-
Navigate to any project.
-
Create a
.gitlab-ci.yml
file with the following contents:stages: - deploy image: alpine:latest deploy-prod: stage: deploy script: - sleep 10 - echo "deploying prod" environment: name: production url: postgres://example.com when: manual deploy-staging: stage: deploy script: - echo "deploying staging" environment: name: staging url: https://example.io when: manual
-
Navigate to
<project> -> Code -> Tags
and create a new release tag. -
Navigate to
<project> -> Deploy -> Releases
, create a new release with a description and attach a newly created release tag. -
Navigate to
<project> -> Settings -> CI/CD -> Protected environments
and protect one of the environments. -
Navigate to
<project> -> Operate -> Environments
, expand a protected environment. -
Click the
Approval options
button.