@basaltkit/deploy 0.4.0 → 0.4.1

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/compose.js +12 -0
  2. package/package.json +1 -1
package/dist/compose.js CHANGED
@@ -105,7 +105,19 @@ async function nameFindings(ctx, sha) {
105
105
  const near = services.find((s) => s.startsWith(name.slice(0, 3)) || name.startsWith(s.slice(0, 3)));
106
106
  findings.push({ id: 'compose', level: 'error', message: `${where}: "${name}" is not a service of ${rt.file}${near ? ` — did you mean "${near}"?` : ''} (services: ${services.join(', ')})` });
107
107
  }
108
+ // The dedicated infra's containers are created by the infra step, before the
109
+ // release: on a new server they do not exist yet, and that is not an error.
110
+ const infra = ctx.config.infra;
111
+ const dedicated = new Set(infra?.kind === 'docker'
112
+ ? [
113
+ infra.postgres && (infra.postgres.container ?? `${ctx.config.app}-pg`),
114
+ infra.redis && (infra.redis.container ?? `${ctx.config.app}-redis`),
115
+ infra.minio && (infra.minio.container ?? `${ctx.config.app}-minio`),
116
+ ].filter((c) => Boolean(c))
117
+ : []);
108
118
  for (const container of Object.keys(rt.attach ?? {})) {
119
+ if (dedicated.has(container))
120
+ continue;
109
121
  const state = await ctx.host.exec('docker', ['inspect', '--format', '{{.State.Running}}', container]);
110
122
  if (state.stdout.trim() !== 'true') {
111
123
  findings.push(state.code === 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basaltkit/deploy",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "engines": {
5
5
  "node": ">=22.5.0"
6
6
  },