Update .woodpecker.yml

This commit is contained in:
Keannu Bernasol 2024-12-12 01:49:38 +08:00
parent 27caa3c081
commit 27d7890de5

View file

@ -12,6 +12,8 @@ steps:
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
- ssh "$SSH_HOST" ' - ssh "$SSH_HOST" '
cd "$PROJECT_DIRECTORY"; cd "$PROJECT_DIRECTORY";
pwd;
ls -a;
docker-compose down; docker-compose down;
docker image rm "$REGISTRY_IMAGE_TAG" || true; docker image rm "$REGISTRY_IMAGE_TAG" || true;
docker volume rm "$DOCKER_DB_VOLUME" || true; docker volume rm "$DOCKER_DB_VOLUME" || true;