https证书替换

This commit is contained in:
2026-06-02 21:58:10 +08:00
parent 46dc2d4682
commit 2109903ba2

View File

@@ -1,21 +1,14 @@
name: 部署 admin-ui 到 K3s name: 自动部署
on: on:
push: push:
branches: branches: [ main ]
- master
jobs: jobs:
deploy: 部署应用:
runs-on: ubuntu-latest runs-on: host
steps: steps:
- name: 拉取代码 - name: 拉取代码
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 配置kubeconfig - name: k8s部署
run: | run: |
mkdir -p ~/.kube /usr/local/bin/kubectl apply -f k8s/
echo "${{ secrets.KUBECONFIG_CONTENT }}" > ~/.kube/config /usr/local/bin/kubectl rollout restart deployment admin-ui -n kubernetes-dashboard
chmod 600 ~/.kube/config
- name: 部署应用
run: |
./kubectl apply -f k8s/
./kubectl rollout restart deployment admin-ui -n kubernetes-dashboard