fix: 补齐 Windows 发布 Composer 镜像源 (#413)

Windows 与 macOS 发布脚本统一支持 Composer 镜像源。
This commit is contained in:
shanshi 2026-10-21 11:12:01 +08:00
parent 20dc695549
commit cd25916d9d

View File

@ -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' `