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 — `SOURCE_DATE_EPOCH` is not respected · Issue #403 · docker/metadata-action

SOURCE_DATE_EPOCH is not respected #403

New issue
Copy link
New issue
Copy link
Open
#742
Open
SOURCE_DATE_EPOCH is not respected#403
#742
Copy link
Labels
kind/enhancement

Description

@Pesa
Pesa
opened on Apr 6, 2024
Issue body actions

Description

metadata-action does not seem to honor the SOURCE_DATE_EPOCH env variable when generating labels and annotations such as org.opencontainers.image.created. I know these can be overridden by the calling workflow, but it would be nice if the action supported SOURCE_DATE_EPOCH by default, for a better out-of-the-box experience.

I'm not sure if SOURCE_DATE_EPOCH should also affect tags that use the {{date}} expression. Personally I don't think it should. Maybe a new expression {{source_date_epoch}} can be added that takes the timestamp from the env variable and formats it as specified, instead of using the current time, but this can be considered separately later.

Reacted by CrazyMax, peterhirn, Richard Schwab, Felix Moessbauer, Stephen Hallett, Xendarboh and Brennan Kinney

Activity

  1. Pesa
    added
    kind/enhancement
    status/triage
    on Apr 6, 2024
  2. crazy-max commented on Apr 7, 2024

    @crazy-max
    crazy-max
    on Apr 7, 2024
    Member
    More actions

    Sounds good thanks

  3. crazy-max
    removed
    status/triage
    on Apr 7, 2024
  4. lvjp commented on Sep 29, 2024

    @lvjp
    lvjp
    on Sep 29, 2024
    More actions

    I think that this is related to the code in src/meta.ts :

    this.date = new Date();

    For now, I have a little workaround :

    - id: git-timestamp
      run: echo "iso8601=$(git log -n1 --pretty=%cI)" >> "${GITHUB_OUTPUT}"
    
    - uses: docker/[email protected]
      id: meta
      with:
        labels: "org.opencontainers.image.created=${{ steps.git-timestamp.outputs.iso8601 }}"
  5. trim21 commented on Nov 13, 2024

    @trim21
    trim21
    on Nov 13, 2024
    Contributor
    More actions

    will #471 works for you?

  6. trim21 commented on Nov 14, 2024

    @trim21
    trim21
    on Nov 14, 2024
    Contributor
    More actions

    looks like they are not same, but it will help fixing this issue

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.