Skip to content

Tag Docker image with release version when release tag is pushed #1833

@eread

Description

@eread

At the moment, a new Docker image is pushed when a release Git tag is pushed. For example:

In both cases, there was a Docker image tag for the SHA corresponding to the commit of the Git tag, but no Docker image tag for the release. So:

  • For v0.20.1, there was --tag lycheeverse/lychee:sha-0a96dc2 (for 0a96dc2) but no --tag lycheeverse/lychee:v0.20.1 or --tag lycheeverse/lychee:0.20.1.
  • For v0.20.0, there was --tag lycheeverse/lychee:sha-e510602 (for e510602) but no --tag lycheeverse/lychee:v0.20.0 or --tag lycheeverse/lychee:0.20.0.

The Docker image tagging seems to be controlled by using the docker/metadata-action GitHub Action: https://github.com/docker/metadata-action. So some configuration change might be required to have a Docker image tagged with the release version number in addition to the SHA of the Git tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions