pass
This commit is contained in:
parent
1f1bfa5ab2
commit
b8cb030953
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
|
||||
docker pull docker.med-logic.ru/medicine:latest
|
||||
docker run --rm --env-file .env --network medicine-network --name medicine-apply-migrations docker.med-logic.ru/medicine:latest python manage.py migrate --noinput
|
||||
|
|
@ -2,9 +2,16 @@
|
|||
|
||||
set -e
|
||||
|
||||
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
|
||||
docker pull docker.med-logic.ru/medicine:latest
|
||||
|
||||
(cd /root/medicine-config/medicine && (
|
||||
docker run --rm \
|
||||
--env-file .env \
|
||||
--network medicine-network \
|
||||
--name medicine-apply-migrations \
|
||||
docker.med-logic.ru/medicine:latest python manage.py migrate --noinput
|
||||
)
|
||||
|
||||
(cd /root/medicine-config/medicine &&
|
||||
docker-compose stop &&
|
||||
docker-compose up -d
|
||||
|
|
|
|||
Loading…
Reference in New Issue