Skip to content

Only show tags that exactly match deployment commit on summary

What does this MR do and why?

Shows only tags for the current deployment commit on the deployment summary, not all tags that contain the deployment

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Example gitlab-ci.yml

image: alpine

production:
  stage: deploy
  script: sleep 3600 && echo "deploying app..."
  environment:
    name: "production"
  1. Deploy to an environment, notice the commit for the deployment
  2. Tag a commit after the currently deployed commit on the same branch (i.e. newer_tag)
  3. Tag the currently deployed commit (i.e. current_tag)
  4. Go to Project >> Deployments >> Environments
  5. In the environment, notice only current_tag is listed for the deployment

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #374955 (closed)

Edited by Allen Cook

Merge request reports

Loading