fix drone config 7
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
BryantHe 2023-07-09 05:37:54 +08:00
parent 07749c709e
commit 97e61f1007
1 changed files with 1 additions and 38 deletions

View File

@ -76,8 +76,7 @@ steps:
- git fetch
- git checkout ${DRONE_BRANCH}
- git reset --hard ${DRONE_COMMIT}
- docker-compose down
- docker-compose up -d --build --force-recreate
- docker-compose down && docker-compose build --no-cache && docker-compose up -d
- docker image prune -f
when:
event:
@ -88,42 +87,6 @@ steps:
- opened
- reopened
- 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