Skip to content

Commit 31b98ed

Browse files
committed
移除 Docker 映像支援多架構的相關內容
1 parent b9c9979 commit 31b98ed

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

source/_posts/2025/gitlab-python-package-registry.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -191,25 +191,6 @@ build:
191191
- # 其他構建步驟
192192
```
193193

194-
### 6. Docker 映像支援多架構
195-
196-
為了支援不同的硬體平台,使用 buildx 構建多架構映像:
197-
198-
```yaml
199-
build-multi-arch:
200-
stage: build
201-
script:
202-
# 設定 buildx
203-
- docker buildx create --use
204-
205-
# 構建並推送多架構映像
206-
- |
207-
docker buildx build \
208-
--platform linux/amd64,linux/arm64 \
209-
-t $REGISTRY_PATH:$NEW_TAG \
210-
--push .
211-
```
212-
213194
## 常見問題與解決方案
214195

215196
### Deploy Token 權限不足?

0 commit comments

Comments
 (0)