mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Add potential fix for secrets not being read
This commit is contained in:
parent
ecfcc4b6f6
commit
4c7a53047d
1 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue