build(aio): disable cache when building a new docker image for the preview server (#19391)

This commit is contained in:
George Kalpakas 2017-09-28 19:28:54 +03:00 committed by Victor Berchet
parent 5406a49f06
commit 0e00265647
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
set -eux -o pipefail set -eux -o pipefail
exec 3>&1 exec 3>&1
echo "[`date`] - Updating the preview server..." echo "\n\n[`date`] - Updating the preview server..."
# Input # Input
readonly HOST_REPO_DIR=$1 readonly HOST_REPO_DIR=$1
@ -37,7 +37,7 @@ readonly CONTAINER_NAME=aio
fi fi
# Create and verify a new docker image. # 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") 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 if [[ "$imageVerified" != "true" ]]; then