Skip to content

fix: support SOURCE_DATE_EPOCH for created metadata - #742

Open
Huzaifa-Asif wants to merge 1 commit into
docker:masterfrom
Huzaifa-Asif:fix/source-date-epoch
Open

Huzaifa-Asif wants to merge 1 commit into
docker:masterfrom
Huzaifa-Asif:fix/source-date-epoch

Conversation

@Huzaifa-Asif

Copy link
Copy Markdown

Summary

  • honor SOURCE_DATE_EPOCH when generating the org.opencontainers.image.created OCI label and annotation
  • keep {{date}} tag expressions based on the action’s current execution time
  • validate SOURCE_DATE_EPOCH as a non-negative integer Unix timestamp
  • document the environment variable and add coverage for valid, missing, invalid, and out-of-range values

Testing

  • docker buildx bake test — 216 tests passed
  • docker buildx bake pre-checkin — passed and regenerated the distribution files
  • docker buildx bake validate — passed
  • vitest run __tests__/meta.test.ts — 144 tests passed
  • ESLint on the affected source and test files — passed
  • tsc --noEmit — passed
  • git diff --check — passed

Closes #403.

AI assistance

OpenAI Codex assisted with investigation, implementation, tests, and drafting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SOURCE_DATE_EPOCH is not respected

1 participant