Skip to content

Automatically Tag Latest Official Version with 'latest' in Docker Repository Based on Semantic Versioning #407

Open
@Gezi-lzq

Description

Feature Request

Problem Statement

Our current release process does not automatically adjust the latest tag to the most recent official version based on semantic versioning. This limitation arises from our unique git workflow, where:

  • Official versions are not strictly confined to the main branch.
  • Version releases do not always follow a sequential temporal order.
    Given these constraints, we seek a feature that, upon releasing an image triggered by a tag, checks if the tag adheres to the Semantic Versioning (SemVer) standard and represents the highest version within the repository. If both conditions are met, the image should additionally be tagged as latest.

Proposed Solution

  1. Detects when a release is triggered by a tag.
  2. Verifies that the tag follows the SemVer standard.
  3. Compares the tagged version against all existing versions in the repository to determine if it is the highest.
  4. If the tagged version is the highest based on SemVer, automatically tags the image with latest.
[Tag Release] ---> [Check if SemVer] ---> [Compare Versions] ---> [Is highest version?] ---> [Tag as 'latest']

(We have not found existing documentation or capabilities within our current toolset that meet this specific need.Additionally, I'm unsure if my idea above constitutes a valid requirement. I would appreciate some feedback on its viability. If deemed reasonable, I'm willing to implement this feature.)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions