@turboops/cli 1.0.0-dev.755 → 1.0.0-dev.757
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 +18 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -206,8 +206,8 @@ var APP_URLS = {
|
|
|
206
206
|
prod: "https://turbo-ops.de"
|
|
207
207
|
};
|
|
208
208
|
var REGISTRY_URLS = {
|
|
209
|
-
local: "registry.
|
|
210
|
-
dev: "registry.
|
|
209
|
+
local: "dev.registry.turbo-ops.de",
|
|
210
|
+
dev: "dev.registry.turbo-ops.de",
|
|
211
211
|
prod: "registry.turbo-ops.de"
|
|
212
212
|
};
|
|
213
213
|
var LOCAL_CONFIG_FILE = ".turboops.json";
|
|
@@ -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,
|