From 0e002656475b31dd15cfe24955372552c14be7dc Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 28 Sep 2017 19:28:54 +0300 Subject: [PATCH] build(aio): disable cache when building a new docker image for the preview server (#19391) --- aio/aio-builds-setup/scripts/update-preview-server.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/aio-builds-setup/scripts/update-preview-server.sh b/aio/aio-builds-setup/scripts/update-preview-server.sh index 1fd6bf6a9d..42c9ec6029 100755 --- a/aio/aio-builds-setup/scripts/update-preview-server.sh +++ b/aio/aio-builds-setup/scripts/update-preview-server.sh @@ -3,7 +3,7 @@ set -eux -o pipefail exec 3>&1 -echo "[`date`] - Updating the preview server..." +echo "\n\n[`date`] - Updating the preview server..." # Input readonly HOST_REPO_DIR=$1 @@ -37,7 +37,7 @@ readonly CONTAINER_NAME=aio fi # Create and verify a new docker image. - aio/aio-builds-setup/scripts/create-image.sh "$PROVISIONAL_IMAGE_NAME" + aio/aio-builds-setup/scripts/create-image.sh "$PROVISIONAL_IMAGE_NAME" --no-cache readonly imageVerified=$(sudo docker run --dns 127.0.0.1 --rm --volume $HOST_SECRETS_DIR:/aio-secrets:ro "$PROVISIONAL_IMAGE_NAME" /bin/bash -c "aio-init && aio-health-check && aio-verify-setup" >> /dev/fd/3 && echo "true" || echo "false") if [[ "$imageVerified" != "true" ]]; then