develop #2
39
.drone.yml
39
.drone.yml
|
@ -76,8 +76,7 @@ steps:
|
||||||
- git fetch
|
- git fetch
|
||||||
- git checkout ${DRONE_BRANCH}
|
- git checkout ${DRONE_BRANCH}
|
||||||
- git reset --hard ${DRONE_COMMIT}
|
- git reset --hard ${DRONE_COMMIT}
|
||||||
- docker-compose down
|
- docker-compose down && docker-compose build --no-cache && docker-compose up -d
|
||||||
- docker-compose up -d --build --force-recreate
|
|
||||||
- docker image prune -f
|
- docker image prune -f
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
|
@ -88,42 +87,6 @@ steps:
|
||||||
- opened
|
- opened
|
||||||
- reopened
|
- reopened
|
||||||
- synchronized
|
- synchronized
|
||||||
- name: gitea-pr-comment-failure
|
|
||||||
image: tsakidev/giteacomment:1.1.1
|
|
||||||
settings:
|
|
||||||
gitea_token:
|
|
||||||
from_secret: gitea_token
|
|
||||||
gitea_base_url: ${DRONE_REPO_LINK}
|
|
||||||
comment: "${DRONE_PULL_REQUEST_TITLE} 部署 sit 环境失败"
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- failure
|
|
||||||
event:
|
|
||||||
include:
|
|
||||||
- pull_request
|
|
||||||
action:
|
|
||||||
include:
|
|
||||||
- opened
|
|
||||||
- reopened
|
|
||||||
- synchronized
|
|
||||||
- name: gitea-pr-comment-success
|
|
||||||
image: tsakidev/giteacomment:1.1.1
|
|
||||||
settings:
|
|
||||||
gitea_token:
|
|
||||||
from_secret: gitea_token
|
|
||||||
gitea_base_url: ${DRONE_REPO_LINK}
|
|
||||||
comment: "${DRONE_PULL_REQUEST_TITLE} 部署 sit 环境成功"
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
event:
|
|
||||||
include:
|
|
||||||
- pull_request
|
|
||||||
action:
|
|
||||||
include:
|
|
||||||
- opened
|
|
||||||
- reopened
|
|
||||||
- synchronized
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue