mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-18 03:02:56 +00:00
Merge pull request #5125 from Dokploy/fix/issue-5096-stack-env-quotes
fix: don't quote .env values for stack deploys
(cherry picked from commit 31ddd7fe1a)
[skip ci]
This commit is contained in:
committed by
Dokploy Bot
parent
8f42dced38
commit
fa3cab8bcc
@@ -7,6 +7,7 @@ import { writeDomainsToCompose } from "../docker/domain";
|
|||||||
import {
|
import {
|
||||||
encodeBase64,
|
encodeBase64,
|
||||||
getEnvironmentVariablesObject,
|
getEnvironmentVariablesObject,
|
||||||
|
prepareEnvironmentVariables,
|
||||||
prepareEnvironmentVariablesForFile,
|
prepareEnvironmentVariablesForFile,
|
||||||
} from "../docker/utils";
|
} from "../docker/utils";
|
||||||
import { withResolvedVaultRefs } from "../vault";
|
import { withResolvedVaultRefs } from "../vault";
|
||||||
@@ -157,10 +158,18 @@ export const getCreateEnvFileCommand = (compose: ComposeNested) => {
|
|||||||
envContent += `\nCOMPOSE_PREFIX=${compose.suffix}`;
|
envContent += `\nCOMPOSE_PREFIX=${compose.suffix}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const envFileContent = prepareEnvironmentVariablesForFile(
|
const envFileContent = (
|
||||||
envContent,
|
compose.composeType === "stack"
|
||||||
compose.environment.project.env,
|
? prepareEnvironmentVariables(
|
||||||
compose.environment.env,
|
envContent,
|
||||||
|
compose.environment.project.env,
|
||||||
|
compose.environment.env,
|
||||||
|
)
|
||||||
|
: prepareEnvironmentVariablesForFile(
|
||||||
|
envContent,
|
||||||
|
compose.environment.project.env,
|
||||||
|
compose.environment.env,
|
||||||
|
)
|
||||||
).join("\n");
|
).join("\n");
|
||||||
|
|
||||||
const encodedContent = encodeBase64(envFileContent);
|
const encodedContent = encodeBase64(envFileContent);
|
||||||
|
|||||||
Reference in New Issue
Block a user