commit 35d42d7ec254525c91ce0653cf5b0042b31f8fa3 Author: 443 <443@itszzz.top> Date: Wed Aug 28 10:47:57 2019 +0800 init commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..c1ed514 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ + +# EVA Tech 服务群日常维护 repo + +[![Build Status](https://ci.zjueva.net/api/badges/zjueva/service-guardian/status.svg)](https://ci.zjueva.net/zjueva/service-guardian) + +2019.08.28 by 443 \ No newline at end of file diff --git a/drone.yml b/drone.yml new file mode 100644 index 0000000..01eef5c --- /dev/null +++ b/drone.yml @@ -0,0 +1,32 @@ +kind: pipeline +name: default +steps: + +- name: update_images + image: appleboy/drone-ssh + settings: + host: 172.18.0.1 + username: cibot + port: 22 + key: + from_secret: cibot_id_rsa + script: + - cd /app/wiki/ + - docker-compose pull + - docker-compose up -d + - cd /app/gitea/ + - docker-compose pull + - docker-compose up -d + +trigger: + branch: + - master + event: + - push + - pull_request + - rollback + +volumes: +- name: cache + host: + path: /var/run/docker.sock \ No newline at end of file