Skip to content

Take leverage of variables into labels #488

@lvjp

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/[email protected]
        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'}}

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