Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take leverage of variables into labels #488

Closed
lvjp opened this issue Dec 6, 2024 · 0 comments · Fixed by #489
Closed

Take leverage of variables into labels #488

lvjp opened this issue Dec 6, 2024 · 0 comments · Fixed by #489

Comments

@lvjp
Copy link

lvjp commented Dec 6, 2024

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'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants