cicd
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
name: 自动部署
|
name: 自动部署
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ main ]
|
||||||
jobs:
|
jobs:
|
||||||
部署应用:
|
部署应用:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 调用容器内部署脚本
|
- name: 调用容器内部署脚本
|
||||||
run: |
|
run: |
|
||||||
docker exec gitea-runner /opt/deploy.sh "${GITEA_REPO_URL}" "${GITEA_BRANCH}"
|
docker exec gitea-runner /opt/deploy.sh "${GITEA_REPO_CLONE_URL}" "${GITEA_COMMIT_BRANCH}"
|
||||||
Reference in New Issue
Block a user