metadata-action icon indicating copy to clipboard operation
metadata-action copied to clipboard

`SOURCE_DATE_EPOCH` is not respected

Open Pesa opened this issue 1 year ago • 4 comments

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.

Pesa avatar Apr 06 '24 23:04 Pesa

Sounds good thanks

crazy-max avatar Apr 07 '24 10:04 crazy-max