feat: CI/CD 增加 tag 选择编译环境

This commit is contained in:
2023-08-02 11:01:45 +08:00
parent 1b96086e78
commit 46bfbec0cd
+4
View File
@@ -30,6 +30,8 @@ default:
# 编译阶段任务
build-arm64:
stage: build
tags:
- arm64
script:
- export
- env
@@ -37,6 +39,8 @@ build-arm64:
build-amd64:
stage: build
tags:
- amd64
script:
- docker buildx build --platform=linux/amd64 --pull -t "$IMG_URL$IMG_TAG-linux-amd64" . --push