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

28 lines
621 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
# ✅ 换成这个镜像(自带 sleep不会报错
container: bitnami/kubectl:1.28.2
steps:
- name: 拉取代码
uses: actions/checkout@v4
- name: 配置 K3s 访问
run: |
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG_CONTENT }}" > ~/.kube/config
chmod 600 ~/.kube/config
- name: 部署到 K3s
run: |
kubectl apply -f k8s/
kubectl rollout restart deployment admin-ui -n kubernetes-dashboard