@treeseed/sdk 0.12.50 → 0.12.52
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.
|
@@ -3678,14 +3678,14 @@ function railwayIacServiceInput(input, sync, service, scope) {
|
|
|
3678
3678
|
key: service.instanceKey ?? service.key,
|
|
3679
3679
|
serviceName: service.serviceName,
|
|
3680
3680
|
sourceMode: service.sourceMode,
|
|
3681
|
-
sourceRepo: service.sourceRepo,
|
|
3682
|
-
sourceBranch: service.sourceBranch,
|
|
3683
|
-
sourceCommit: service.sourceCommit,
|
|
3684
|
-
sourceRootDirectory: service.sourceRootDirectory ?? railwayServiceRootDirectory(input.context.tenantRoot, service),
|
|
3681
|
+
sourceRepo: service.sourceMode === "git" ? service.sourceRepo : null,
|
|
3682
|
+
sourceBranch: service.sourceMode === "git" ? service.sourceBranch : null,
|
|
3683
|
+
sourceCommit: service.sourceMode === "git" ? service.sourceCommit : null,
|
|
3684
|
+
sourceRootDirectory: service.sourceMode === "git" ? service.sourceRootDirectory ?? railwayServiceRootDirectory(input.context.tenantRoot, service) : null,
|
|
3685
3685
|
imageRef: service.imageRef,
|
|
3686
|
-
dockerfilePath: service.dockerfilePath,
|
|
3687
|
-
buildCommand: service.buildCommand,
|
|
3688
|
-
startCommand: service.startCommand,
|
|
3686
|
+
dockerfilePath: service.sourceMode === "git" ? service.dockerfilePath : null,
|
|
3687
|
+
buildCommand: service.sourceMode === "git" ? service.buildCommand : null,
|
|
3688
|
+
startCommand: service.sourceMode === "git" ? service.startCommand : null,
|
|
3689
3689
|
healthcheckPath: service.healthcheckPath,
|
|
3690
3690
|
healthcheckTimeoutSeconds: service.healthcheckTimeoutSeconds,
|
|
3691
3691
|
runtimeMode: service.runtimeMode,
|
|
@@ -2090,6 +2090,9 @@ function releaseWorkflowForPackage(root, packageName) {
|
|
|
2090
2090
|
}
|
|
2091
2091
|
function productionDeployWorkflowForPackage(root, packageName) {
|
|
2092
2092
|
const adapter = discoverTreeseedPackageAdapters(root).find((entry) => entry.id === packageName || entry.name === packageName);
|
|
2093
|
+
if (adapter?.capabilities.deploy !== true) {
|
|
2094
|
+
return null;
|
|
2095
|
+
}
|
|
2093
2096
|
const repoPath = adapter?.dir;
|
|
2094
2097
|
if (!repoPath || !existsSync(resolve(repoPath, "treeseed.site.yaml"))) {
|
|
2095
2098
|
return null;
|