Skip to content

Commit c5dc37c

Browse files
feat: Copy cron.yaml to build directory (#108)
Co-authored-by: Jonas Jongejan <jonas@picturestudio.ai>
1 parent dc2ed43 commit c5dc37c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { existsSync, readFileSync, writeFileSync } from "node:fs";
1+
import { copyFileSync, existsSync, readFileSync, writeFileSync } from "node:fs";
22
import { join, posix } from "node:path";
33
import { fileURLToPath } from "node:url";
44
import YAML from "yaml";
@@ -195,6 +195,11 @@ export default function entrypoint(options = {}) {
195195
}),
196196
);
197197

198+
// Copy cron.yaml if it exists
199+
if (existsSync("cron.yaml")) {
200+
copyFileSync("cron.yaml", join(out, "cron.yaml"));
201+
}
202+
198203
builder.log.success(
199204
`To deploy, run "gcloud app deploy --project <CLOUD_PROJECT_ID> ${out}/app.yaml"`,
200205
);

0 commit comments

Comments
 (0)