ci/cd调整
This commit is contained in:
18
.gitea/workflows/deploy.yaml
Normal file
18
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
name: 部署 admin-ui 到 K3s
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 拉取代码
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 部署到 K3s
|
||||
run: |
|
||||
kubectl apply -f k8s/
|
||||
kubectl rollout restart deployment admin-ui
|
||||
Reference in New Issue
Block a user