Commit

repos binds both buckets in one r2_buckets list (the merge left two keys, and the second would have won)

syntaqxcommitted Parentdf7cb0dBrowse files
1 file+7−50/1 viewed
+7−5
3737 // unfinished uploads after 1:
3838 // npx wrangler r2 bucket create g1t-git-packs
3939 // npx wrangler r2 bucket lifecycle add g1t-git-packs expire-packs packs/ --expire-days 7 --abort-multipart-days 1
40− "r2_buckets": [{ "binding": "GIT_PACKS", "bucket_name": "g1t-git-packs" }],
40+ // Nightly backups go to the second bucket: a git bundle per repository
41+ // and a manifest of each chain (src/backups.rs). Made by
42+ // `npx wrangler r2 bucket create g1t-backups`.
43+ "r2_buckets": [
44+ { "binding": "GIT_PACKS", "bucket_name": "g1t-git-packs" },
45+ { "binding": "BACKUPS", "bucket_name": "g1t-backups" }
46+ ],
4147 "services": [
4248 { "binding": "IDENTITY", "service": "g1t-identity" },
4349 { "binding": "EVENTS", "service": "g1t-events" },
95101 // their last backup are queued for one (src/backups.rs, BACKUP_CRON);
96102 // the runner's sweep starts them a few at a time.
97103 "triggers": { "crons": ["23 * * * *", "53 2 * * *"] },
98− // Nightly backups: a git bundle per repository and a manifest of each
99− // chain (src/backups.rs). Made by
100− // `npx wrangler r2 bucket create g1t-backups`.
101− "r2_buckets": [{ "binding": "BACKUPS", "bucket_name": "g1t-backups" }],
102104 // A workspace renamed moves its repositories to the new slug; one
103105 // deleted purges the repositories it left in Recently deleted.
104106 "queues": {