Skip to content

Commit 83bfbc8

Browse files
committed
fix(webapp): progress native self-hosted deployments instead of dead enqueue path
1 parent 774007e commit 83bfbc8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

apps/webapp/app/v3/services/initializeDeployment.server.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,16 @@ export class InitializeDeploymentService extends BaseService {
249249
new Date(Date.now() + timeoutMs)
250250
);
251251

252-
// For github integration there is no artifactKey, hence we skip it here
252+
// For self-hosted native builds, progressing the deployment is the action that actually
253+
// transitions the deployment out of PENDING and starts the local build path.
254+
// For github integration there is no artifactKey, hence we skip it here.
253255
if (payload.isNativeBuild && payload.artifactKey && !payload.skipEnqueue) {
254256
const result = await deploymentService
255-
.enqueueBuild(environment, deployment, payload.artifactKey, {
256-
skipPromotion: payload.skipPromotion,
257-
configFilePath: payload.configFilePath,
257+
.progressDeployment(environment, deployment.friendlyId, {
258+
contentHash: payload.contentHash,
259+
git: payload.gitMeta,
260+
runtime: payload.runtime,
261+
buildServerMetadata,
258262
})
259263
.orElse((error) => {
260264
logger.error("Failed to enqueue build", {

0 commit comments

Comments
 (0)