dokku-compose 0.14.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -281,8 +281,8 @@ var GitSchema = z.object({
281
281
  source_image: z.string().optional(),
282
282
  // Dokku reads `archive-max-files` and `archive-max-size` only from the global setting
283
283
  // (`git:set --global`), which dokku-compose does not manage yet; a per-app value never applies.
284
- archive_max_files: z.any().refine((v) => v === void 0, { message: "archive_max_files is read only from the global git setting, which dokku-compose does not manage; run `dokku git:set --global archive-max-files <n>`" }),
285
- archive_max_size: z.any().refine((v) => v === void 0, { message: "archive_max_size is read only from the global git setting, which dokku-compose does not manage; run `dokku git:set --global archive-max-size <n>`" })
284
+ archive_max_files: z.any().optional().refine((v) => v === void 0, { message: "archive_max_files is read only from the global git setting, which dokku-compose does not manage; run `dokku git:set --global archive-max-files <n>`" }),
285
+ archive_max_size: z.any().optional().refine((v) => v === void 0, { message: "archive_max_size is read only from the global git setting, which dokku-compose does not manage; run `dokku git:set --global archive-max-size <n>`" })
286
286
  }).strict();
287
287
  var LinkSchema = z.union([
288
288
  z.string(),
@@ -1925,9 +1925,11 @@ async function ensurePostgresBackups(ctx, services, opts = {}) {
1925
1925
  }
1926
1926
  if (fields.has("backup.schedule")) {
1927
1927
  await ctx.run("postgres:backup-schedule", name, schedule, bucket);
1928
- const cronOutput = await ctx.query("postgres:backup-schedule-cat", name);
1929
- if (!parseBackupSchedule(cronOutput)) {
1930
- throw new Error(`Backup schedule for ${name} was not installed after backup-schedule ran`);
1928
+ if (!opts.dryRun) {
1929
+ const cronOutput = await ctx.query("postgres:backup-schedule-cat", name);
1930
+ if (!parseBackupSchedule(cronOutput)) {
1931
+ throw new Error(`Backup schedule for ${name} was not installed after backup-schedule ran`);
1932
+ }
1931
1933
  }
1932
1934
  } else if (fields.has("backup.bucket")) {
1933
1935
  await ctx.run("postgres:set", name, "backup-bucket", bucket);
@@ -2394,6 +2396,7 @@ async function runUpPhases(ctx, config, appFilter, opts) {
2394
2396
  if (config.postgres) {
2395
2397
  await ensurePostgresBackups(ctx, config.postgres, {
2396
2398
  prune: opts.prune,
2399
+ dryRun: opts.dryRun,
2397
2400
  dryRunCreated: opts.dryRun ? createdPostgres : void 0
2398
2401
  });
2399
2402
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dokku-compose",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Docker Compose for Dokku — declare your entire server in a single YAML file.",
5
5
  "main": "dist/index.js",
6
6
  "exports": "./dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "commander": "^14.0.3",
41
41
  "execa": "^9.6.1",
42
42
  "js-yaml": "^4.1.1",
43
- "zod": "^4.3.6"
43
+ "zod": "^4.6.7"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/js-yaml": "^4.0.9",