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