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
|
||||
echo "[INFO] Running build..."
|
||||
|
||||
if [ "$DOCKER_CACHE" == "true" ]; then
|
||||
docker pull "$DOCKER_IMAGE:latest"
|
||||
if "$DOCKER_CACHE" == "true" && docker pull "$DOCKER_IMAGE:latest" > /dev/null 2>&1
|
||||
then
|
||||
docker build --pull --tag "$DOCKER_IMAGE:$DOCKER_TAG" --cache-from "$DOCKER_IMAGE:latest" .
|
||||
else
|
||||
docker build --pull --tag "$DOCKER_IMAGE:$DOCKER_TAG" .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue