cicd
Some checks failed
自动部署 / 部署应用 (push) Failing after 1s

This commit is contained in:
2026-06-02 22:35:05 +08:00
parent d96fac324b
commit f566a33865

View File

@@ -1,13 +1,19 @@
name: 自动部署
on:
push:
branches: [master]
branches: [ master ]
jobs:
部署应用:
runs-on: ubuntu-latest
steps:
- name: 拉取代码
uses: actions/checkout@v4
- name: 拉取项目代码
run: |
rm -rf ./tmpcode
git clone $GITEA_REPO_URL tmpcode
cd tmpcode
cp -rf ./* ../
cd ../
rm -rf tmpcode
- name: k8s部署
run: |
/usr/local/bin/kubectl apply -f k8s/