@treeseed/sdk 0.12.49 → 0.12.51
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,
|
|
@@ -4462,7 +4462,7 @@ function collectRailwayEnvironmentSync(input, valuesOverlay = {}) {
|
|
|
4462
4462
|
const registry = collectTreeseedEnvironmentContext(input.context.tenantRoot);
|
|
4463
4463
|
const configuredServices = configuredRailwayServicesForInput(input, scope);
|
|
4464
4464
|
const hasPublicTreeDxService = configuredServices.some((service) => service.key === "public-treedx-node-01" && service.enabled !== false);
|
|
4465
|
-
const machineValues = hasPublicTreeDxService ? normalizeEnvironmentValues(resolveTreeseedMachineEnvironmentValues(input.context.tenantRoot, scope)) : {};
|
|
4465
|
+
const machineValues = hasPublicTreeDxService && scope === "local" ? normalizeEnvironmentValues(resolveTreeseedMachineEnvironmentValues(input.context.tenantRoot, scope)) : {};
|
|
4466
4466
|
const baseValues = {
|
|
4467
4467
|
...resolveReconcileEnvironmentValues(input, scope),
|
|
4468
4468
|
...machineValues,
|