Skip to content

Commit f98e930

Browse files
Chris-Mollerclaude
andauthored
feat(cli): add --build-caddyfile flag to deploy and upgrade commands (#72)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 05cd55d commit f98e930

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

packages/cli/src/commands/compute/app/deploy.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ export default class AppDeploy extends Command {
129129
description: "Dependency digests for verifiable build (git source mode) (sha256:...)",
130130
multiple: true,
131131
}),
132+
"build-caddyfile": Flags.string({
133+
description:
134+
"Optional path to Caddyfile inside the repo (relative to build context). If omitted, auto-detected from env file TLS settings",
135+
required: false,
136+
env: "ECLOUD_BUILD_CADDYFILE",
137+
}),
132138
};
133139

134140
async run() {
@@ -228,7 +234,7 @@ export default class AppDeploy extends Command {
228234
repoUrl: flags.repo!,
229235
gitRef: flags.commit!,
230236
dockerfilePath: flags["build-dockerfile"],
231-
caddyfilePath: undefined,
237+
caddyfilePath: flags["build-caddyfile"],
232238
buildContextPath: flags["build-context"],
233239
dependencies: flags["build-dependencies"],
234240
}

packages/cli/src/commands/compute/app/upgrade.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ export default class AppUpgrade extends Command {
107107
description: "Dependency digests for verifiable build (git source mode) (sha256:...)",
108108
multiple: true,
109109
}),
110+
"build-caddyfile": Flags.string({
111+
description:
112+
"Optional path to Caddyfile inside the repo (relative to build context). If omitted, auto-detected from env file TLS settings",
113+
required: false,
114+
env: "ECLOUD_BUILD_CADDYFILE",
115+
}),
110116
};
111117

112118
async run() {
@@ -188,7 +194,7 @@ export default class AppUpgrade extends Command {
188194
repoUrl: flags.repo!,
189195
gitRef: flags.commit!,
190196
dockerfilePath: flags["build-dockerfile"],
191-
caddyfilePath: undefined,
197+
caddyfilePath: flags["build-caddyfile"],
192198
buildContextPath: flags["build-context"],
193199
dependencies: flags["build-dependencies"],
194200
}

0 commit comments

Comments
 (0)