This commit is contained in:
parent
16eb5f4419
commit
0300720111
1 changed files with 5 additions and 14 deletions
19
.drone.yml
19
.drone.yml
|
@ -12,10 +12,8 @@ steps:
|
||||||
tags: latest
|
tags: latest
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
include:
|
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
include:
|
|
||||||
- push
|
- push
|
||||||
- name: docker-build
|
- name: docker-build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@ -28,12 +26,11 @@ steps:
|
||||||
tags: latest
|
tags: latest
|
||||||
dry_run: true
|
dry_run: true
|
||||||
when:
|
when:
|
||||||
branch:
|
exclude:
|
||||||
exclude:
|
branch:
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
exclude:
|
- push
|
||||||
- push
|
|
||||||
- name: dev docker
|
- name: dev docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
@ -45,10 +42,8 @@ steps:
|
||||||
tags: dev
|
tags: dev
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
include:
|
|
||||||
- dev
|
- dev
|
||||||
event:
|
event:
|
||||||
include:
|
|
||||||
- push
|
- push
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
@ -64,10 +59,8 @@ steps:
|
||||||
- cd /root && docker-compose pull shbot && docker-compose up -d shbot
|
- cd /root && docker-compose pull shbot && docker-compose up -d shbot
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
include:
|
|
||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
include:
|
|
||||||
- push
|
- push
|
||||||
- name: deploy dev
|
- name: deploy dev
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
@ -83,8 +76,6 @@ steps:
|
||||||
- cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev
|
- cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
include:
|
|
||||||
- dev
|
- dev
|
||||||
event:
|
event:
|
||||||
include:
|
|
||||||
- push
|
- push
|
Loading…
Reference in a new issue