Try to pull image

This commit is contained in:
2020-02-29 09:54:02 +03:00
parent 13161682c4
commit 9636545980
2 changed files with 19 additions and 16 deletions

View File

@ -4,7 +4,7 @@ set -eux
source /home/dayoff/.env
IMAGE=anwinged/dayoff
IMAGE=cr.yandex/crplfk0168i4o8kd7ade/dayoff
DATA_PATH=/home/dayoff/data
CONTAINER_NAME="${CONTAINER_PREFIX}-server"
@ -16,6 +16,8 @@ if [ -t 1 ] ; then
TTY=-t
fi
echo "$YANDEX_CLOUD_DOCKER_REGISTRY_KEY" | docker login --username json_key --password-stdin cr.yandex
docker pull "${IMAGE}"
docker stop "${CONTAINER_NAME}" || true