From a5a0706f285834181c9afeb604435f5ebd3a9911 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 12 Dec 2024 02:14:13 +0800 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker/.deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.woodpecker/.deploy.yml b/.woodpecker/.deploy.yml index 901f560..109f91c 100644 --- a/.woodpecker/.deploy.yml +++ b/.woodpecker/.deploy.yml @@ -10,16 +10,14 @@ 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 - - ssh "$SSH_HOST" ' + - ssh "$SSH_HOST" " cd "$PROJECT_DIRECTORY"; - pwd; - ls -a; docker-compose down; docker image rm "$REGISTRY_IMAGE_TAG" || true; docker volume rm "$DOCKER_DB_VOLUME" || true; docker pull "$REGISTRY_IMAGE_TAG"; docker-compose up -d; - docker image prune -af;' + docker image prune -af;" secrets: [ SSH_HOST,