Skip to content
Snippets Groups Projects
Commit 73af0434 authored by Philip ABBET's avatar Philip ABBET
Browse files

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

parent 2a4476b0
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment