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

This commit is contained in:
BryantHe 2023-07-09 05:41:43 +08:00
parent ce40570c93
commit 8ea68aabfe
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,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:
@ -77,6 +76,7 @@ steps:
- git checkout ${DRONE_BRANCH} - git checkout ${DRONE_BRANCH}
- git reset --hard ${DRONE_COMMIT} - git reset --hard ${DRONE_COMMIT}
- docker-compose down && docker-compose build --no-cache && docker-compose up -d - docker-compose down && docker-compose build --no-cache && docker-compose up -d
- docker image prune -f
when: when:
event: event:
include: include: