Files
admin-ui/.gitea/workflows/deploy.yaml
张斌 cb806e19b1
Some checks failed
部署 admin-ui 到 K3s / deploy (push) Failing after 31s
https证书替换
2026-06-02 18:11:36 +08:00

26 lines
664 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.
name: 部署 admin-ui 到 K3s
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 拉取代码
uses: actions/checkout@v4
# 直接使用仓库里自带的 kubectl0 依赖、0 下载
- name: 直接使用仓库内 kubectl
run: |
chmod +x kubectl
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG_CONTENT }}" > ~/.kube/config
chmod 600 ~/.kube/config
# 部署(重点:用 ./kubectl 而不是 kubectl
./kubectl apply -f k8s/
./kubectl rollout restart deployment admin-ui -n kubernetes-dashboard