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.
Description
metadata-actiondoes not seem to honor theSOURCE_DATE_EPOCHenv variable when generating labels and annotations such asorg.opencontainers.image.created. I know these can be overridden by the calling workflow, but it would be nice if the action supportedSOURCE_DATE_EPOCHby default, for a better out-of-the-box experience.I'm not sure if
SOURCE_DATE_EPOCHshould 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.