From 97e61f100705fd33c744b184df4664ee455fa365 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sun, 9 Jul 2023 05:37:54 +0800 Subject: [PATCH] fix drone config 7 --- .drone.yml | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1696c37..9b121bb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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