对齐文件规范
This commit is contained in:
15
ansible/files/05-04/gitlab-ci-multi-arch-deploy.example.yml
Normal file
15
ansible/files/05-04/gitlab-ci-multi-arch-deploy.example.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
# docs/05-04-k3s-配置gitlab-cicd.md — 多架构 Runner tags 示例
|
||||
deploy_x86: # 任务名:x86 架构部署
|
||||
stage: deploy # 所属阶段
|
||||
tags: [x86] # 仅匹配带 x86 tag 的 Runner
|
||||
script: # 执行脚本
|
||||
- echo "$KUBE_CONFIG_CONTENT" > "$KUBECONFIG" # 写入 kubeconfig
|
||||
- kubectl --kubeconfig="$KUBECONFIG" apply -f manifests/x86/ # 部署 x86 清单
|
||||
|
||||
deploy_arm64: # 任务名:arm64 架构部署
|
||||
stage: deploy # 所属阶段
|
||||
tags: [arm64] # 仅匹配带 arm64 tag 的 Runner
|
||||
script: # 执行脚本
|
||||
- echo "$KUBE_CONFIG_CONTENT" > "$KUBECONFIG" # 写入 kubeconfig
|
||||
- kubectl --kubeconfig="$KUBECONFIG" apply -f manifests/arm64/ # 部署 arm64 清单
|
||||
|
||||
Reference in New Issue
Block a user