@turboops/cli 1.0.0-dev.754 → 1.0.0-dev.756
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.
- package/dist/index.js +16 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2570,6 +2570,22 @@ var deployCommand = new Command4("deploy").description("Trigger a deployment (fo
|
|
|
2570
2570
|
);
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
|
+
if (composeFileContent) {
|
|
2574
|
+
const registryUrl = configService.getRegistryUrl();
|
|
2575
|
+
const imageName = `${registryUrl}/${project.slug}`;
|
|
2576
|
+
const commitSha = detectCiCommitSha();
|
|
2577
|
+
composeFileContent = composeFileContent.replace(
|
|
2578
|
+
/\$\{IMAGE_NAME(?::-[^}]*)?\}/g,
|
|
2579
|
+
imageName
|
|
2580
|
+
);
|
|
2581
|
+
if (commitSha) {
|
|
2582
|
+
composeFileContent = composeFileContent.replace(
|
|
2583
|
+
/\$\{IMAGE_TAG(?::-[^}]*)?\}/g,
|
|
2584
|
+
commitSha
|
|
2585
|
+
);
|
|
2586
|
+
logger.info(`Substituted image placeholders: ${imageName}:${commitSha}`);
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2573
2589
|
logger.info("Triggering deployment...");
|
|
2574
2590
|
const { data: deployment, error } = await apiClient.deploy(
|
|
2575
2591
|
env.id,
|