Files
Deploy-Laboratory/ansible/files/05-04/gitlab-ci-multi-arch-deploy.example.yml
2026-03-27 16:58:41 +08:00

16 lines
689 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 清单