GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Take leverage of variables into labels · Issue #488 · docker/metadata-action

Take leverage of variables into labels #488

New issue
Copy link
New issue
Copy link
Closed
#489
Closed
Take leverage of variables into labels#488
#489
Copy link
Labels
kind/enhancement

Description

@lvjp
lvjp
opened on Dec 6, 2024
Issue body actions

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'}}

Activity

  1. lvjp
    added
    kind/enhancement
    status/triage
    on Dec 6, 2024
  2. crazy-max
    removed
    status/triage
    on Dec 6, 2024
  3. tonistiigi
    closed this as completedin #489on Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.