diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml index 0532870..1e9d6de 100644 --- a/.woodpecker/.deploy.yml +++ b/.woodpecker/.deploy.yml @@ -11,7 +11,7 @@ steps: - chmod 600 /root/.ssh/id_rsa - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config - 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;