Visitar URL original
Take leverage of variables into labels · Issue #488 · docker/metadata-action · GitHub
Skip to content

Take leverage of variables into labels #488

Closed

Description

@lvjp

Description

To help the resolution of #403, when SOURCE_DATE_EPOCH is the commit date, since #471, we can now use the variable commit_date but it does not interpolate within the labels.

With this input :

      - uses: docker/metadata-action@v5.6.1
        with:
          labels: |
            org.opencontainers.image.created={{commit_date YYYY-MM-DDTHH:mm:ssZ}}

My test :

--- expected
+++actual
-org.opencontainers.image.created=2024-12-06T04:45:03+01:00
+org.opencontainers.image.newcreated={{commit_date 'YYYY-MM-DDTHH:mm:ssZ'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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