Update run-docker.sh
This commit is contained in:
parent
82305fd8cf
commit
0ac2b8ce99
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ echo "[INFO] Docker was initialized"
|
||||||
# Start barys with all the arguments requested
|
# Start barys with all the arguments requested
|
||||||
echo "[INFO] Running build..."
|
echo "[INFO] Running build..."
|
||||||
|
|
||||||
if [ "$DOCKER_CACHE" == "true" ]; then
|
if "$DOCKER_CACHE" == "true" && docker pull "$DOCKER_IMAGE:latest" > /dev/null 2>&1
|
||||||
docker pull "$DOCKER_IMAGE:latest"
|
then
|
||||||
docker build --pull --tag "$DOCKER_IMAGE:$DOCKER_TAG" --cache-from "$DOCKER_IMAGE:latest" .
|
docker build --pull --tag "$DOCKER_IMAGE:$DOCKER_TAG" --cache-from "$DOCKER_IMAGE:latest" .
|
||||||
else
|
else
|
||||||
docker build --pull --tag "$DOCKER_IMAGE:$DOCKER_TAG" .
|
docker build --pull --tag "$DOCKER_IMAGE:$DOCKER_TAG" .
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue