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

14 lines
488 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: 自动部署
on:
push:
branches: [ master ]
jobs:
部署应用:
runs-on: ubuntu-latest
steps:
- name: k8s部署
run: |
# 把当前项目目录挂载进runner容器在容器内部执行kubectl
docker cp . gitea-runner:/tmp/work
docker exec -w /tmp/work gitea-runner /usr/local/bin/kubectl apply -f k8s/
docker exec gitea-runner /usr/local/bin/kubectl rollout restart deployment admin-ui -n kubernetes-dashboard