From 1fe73565f493e3ded17f02fe9fcf43b6447543ea Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 12 Dec 2024 01:45:21 +0800 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker/.deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml index c65c1e7..0532870 100644 --- a/.woodpecker/.deploy.yml +++ b/.woodpecker/.deploy.yml @@ -10,9 +10,8 @@ steps: - echo "$WOODPECKER_SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa - chmod 600 /root/.ssh/id_rsa - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config - - echo "$PROJECT_DIRECTORY" - ssh "$SSH_HOST" ' - cd "$PROJECT_DIRECTORY"; + cd $PROJECT_DIRECTORY; docker-compose down; docker image rm "$REGISTRY_IMAGE_TAG" || true; docker volume rm "$DOCKER_DB_VOLUME" || true;