Add potential fix for secrets not being read

This commit is contained in:
Keannu Bernasol 2024-08-30 20:28:39 +08:00
parent ecfcc4b6f6
commit 4c7a53047d

View file

@ -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]