diff --git a/scripts/deploy-from-workstation.ps1 b/scripts/deploy-from-workstation.ps1 index bc54c179..12f18e10 100644 --- a/scripts/deploy-from-workstation.ps1 +++ b/scripts/deploy-from-workstation.ps1 @@ -49,6 +49,12 @@ $sshTunnel = $null $buildkitConfig = Join-Path $repoRoot 'deploy/buildkitd.toml' $regctlVersion = 'v0.11.5' $regctlSha256 = '9b83975d464e4ee5a9f899a3ead26072ed67e9a8ed0f582897bfad8141b45938' +$composerRepoPackagist = if (Test-Path Env:CAIWU_COMPOSER_REPO_PACKAGIST) { + $env:CAIWU_COMPOSER_REPO_PACKAGIST +} +else { + 'https://mirrors.cloud.tencent.com/composer/' +} function Test-CaiwuReleaseIncludesCommit { param([string]$PreviousSha, [string]$ReleaseSha) @@ -408,6 +414,7 @@ try { --load ` --tag $fullImage ` --build-context 'frontend=.caiwu-build/public' ` + --build-arg "COMPOSER_REPO_PACKAGIST=$composerRepoPackagist" ` --build-arg "VCS_REF=$deploySha" ` --build-arg "BUILD_DATE=$buildDate" ` --build-arg 'APP_VERSION=3.1.15' ` @@ -559,6 +566,7 @@ try { --output "type=oci,dest=$localTar" ` --tag $fullImage ` --build-context 'frontend=.caiwu-build/public' ` + --build-arg "COMPOSER_REPO_PACKAGIST=$composerRepoPackagist" ` --build-arg "VCS_REF=$deploySha" ` --build-arg "BUILD_DATE=$buildDate" ` --build-arg 'APP_VERSION=3.1.15' `