fix: use owner-level unidesk state
This commit is contained in:
@@ -83,7 +83,7 @@ function parseAttachOptions(config: UniDeskConfig, args: string[]): ProviderAtta
|
||||
}
|
||||
const envFile = optionValue(args, "--env-file") ?? rootPath(".state", `provider-${providerId}.env`);
|
||||
const composeFile = optionValue(args, "--compose-file") ?? rootPath(`provider-${providerId}.yml`);
|
||||
const logDir = optionValue(args, "--log-dir") ?? rootPath("logs", `provider-${providerId}`);
|
||||
const logDir = optionValue(args, "--log-dir") ?? rootPath(".state", "logs", `provider-${providerId}`);
|
||||
return {
|
||||
providerId,
|
||||
masterServer: optionValue(args, "--master-server") ?? optionValue(args, "--master") ?? defaultMasterServer(config),
|
||||
@@ -109,7 +109,7 @@ function envContent(options: ProviderAttachOptions): string {
|
||||
`PROVIDER_UPGRADE_HOST_PROJECT_ROOT=${repoRoot}`,
|
||||
"PROVIDER_UPGRADE_WORKSPACE_PATH=/workspace",
|
||||
`PROVIDER_UPGRADE_COMPOSE_FILE=provider-${options.providerId}.yml`,
|
||||
`PROVIDER_UPGRADE_ENV_FILE=.state/provider-${options.providerId}.env`,
|
||||
`PROVIDER_UPGRADE_ENV_FILE=${options.envFile}`,
|
||||
`PROVIDER_UPGRADE_COMPOSE_PROJECT=unidesk-${slug}`,
|
||||
"PROVIDER_UPGRADE_SERVICE=provider-gateway",
|
||||
`PROVIDER_UPGRADE_RUNNER_IMAGE=unidesk_provider-gateway:${slug}`,
|
||||
|
||||
Reference in New Issue
Block a user