From b68bfbfb07266c7dacee6b258d079d6926afa0b7 Mon Sep 17 00:00:00 2001 From: trevor Date: Sat, 28 Dec 2024 11:52:01 +0900 Subject: [PATCH] pipeline fix --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d218e975..2b167268 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,8 +7,9 @@ steps: - name: clone_repo image: alpine/git commands: - - git clone $DRONE_REPO_URL . - - git checkout $DRONE_COMMIT + - if [ ! -d .git ]; then git clone $DRONE_REPO_URL .; fi + - git fetch --all + - git reset --hard $DRONE_COMMIT # Шаг 2: Обновление и запуск с помощью update.sh - name: deploy_app