diff --git a/.woodpecker.yml b/.woodpecker.yml index 438202f..04de634 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -23,10 +23,10 @@ steps: - chmod 600 /root/.ssh/id_rsa - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config - ssh root@10.0.10.4 ' - cd "$PROJECT_DIR"; + cd "${PROJECT_DIR}"; docker-compose down; - docker image rm "$IMAGE_TAG" || true; - docker pull "$IMAGE_TAG":latest; + docker image rm "${IMAGE_TAG}" || true; + docker pull "${IMAGE_TAG}:latest"; docker volume rm "${IMAGE_TAG}_db_data" || true; docker compose up -d' secrets: [IMAGE_TAG, SSH_KEY, PROJECT_DIR]