Files
admin-ui/.gitea/workflows/deploy.yaml
张斌 9db3dfe675
Some checks failed
自动部署 / 部署应用 (push) Failing after 1s
cicd
2026-06-02 22:45:43 +08:00

13 lines
412 B
YAML

name: 自动部署
on:
push:
branches: [ master ]
jobs:
部署应用:
runs-on: ubuntu-latest
steps:
- name: k8s部署
run: |
docker cp ./ gitea-runner:/tmp/work/
docker exec -w /tmp/work gitea-runner sh -c "/usr/local/bin/kubectl apply -f k8s/"
docker exec gitea-runner /usr/local/bin/kubectl rollout restart deployment admin-ui -n kubernetes-dashboard