Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cli-deploy-skip-rewrite-timestamp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---

Add `TRIGGER_BUILD_SKIP_REWRITE_TIMESTAMP=1` escape hatch for local self-hosted builds whose buildx driver doesn't support `rewrite-timestamp` alongside push (e.g. orbstack's default `docker` driver).
9 changes: 8 additions & 1 deletion packages/cli-v3/src/deploy/buildImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,14 @@ function getOutputOptions({
return outputOptions;
}

const outputOptions: string[] = ["type=image", "oci-mediatypes=true", "rewrite-timestamp=true"];
// `rewrite-timestamp` is incompatible with the buildx docker driver's
// implicit `unpack=true` on push (used by e.g. orbstack's default builder).
// Provide an env-var escape hatch so local-dev deploys can opt out.
const skipRewriteTimestamp = process.env.TRIGGER_BUILD_SKIP_REWRITE_TIMESTAMP === "1";
const outputOptions: string[] = ["type=image", "oci-mediatypes=true"];
if (!skipRewriteTimestamp) {
Comment thread
ericallam marked this conversation as resolved.
outputOptions.push("rewrite-timestamp=true");
}

if (imageTag) {
outputOptions.push(`name=${imageTag}`);
Expand Down
Loading