Commit 73af0434 authored by Philip ABBET's avatar Philip ABBET

[buildout] Don't wait for user confirmation on the CI

parent 2a4476b0
Pipeline #8857 passed with stage
in 9 minutes and 11 seconds
......@@ -30,13 +30,25 @@ if [ ${#MISSING_IMAGES[@]} -gt 0 ]; then
done
echo
read -p "Do you want to install them now? (yes/no) " -n 1 -r
echo
MUST_PULL=0
if [ -z "$CI_SERVER" ]; then
read -p "Do you want to install them now? (yes/no) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
MUST_PULL=1
fi
else
MUST_PULL=1
fi
if [[ $REPLY =~ ^[Yy]$ ]]; then
if [ $MUST_PULL -eq 1 ]; then
# Log in the registry if needed
if ! grep -q "docker.idiap.ch" ~/.docker/config.json ; then
docker login docker.idiap.ch
if [ -z "$CI_SERVER" ]; then
if ! grep -q "docker.idiap.ch" ~/.docker/config.json ; then
docker login docker.idiap.ch
fi
fi
# Pull the images
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment