From 4c7a53047d970a241c060a6a62d61a7ef1467eea Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 30 Aug 2024 20:28:39 +0800 Subject: [PATCH] Add potential fix for secrets not being read --- .woodpecker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]