Skip to content

Add a label with the source code's commit version to the image #19

@matiasgarciaisaia

Description

@matiasgarciaisaia

Context

When using (mostly in staging) images tagged as latest, it's sometimes not that easy to check which version of the app's source code was used for the build. We usually create a VERSION file with that info (inside the image), but that's manually done outside of ci-docker-builder.

Potential solution 💡

We should add a LABEL to the built Docker image, annotating the source code version of the repo. We may think about adding the repo's URL/name, too.

Alternatives

I guess we should make this optional, thinking about not leaking repo's names or hashes, but I'm not sure about that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions