Skip to content

Commit

Permalink
Actually pull images before building them
Browse files Browse the repository at this point in the history
This line somehow got lost when extracting the docker build into a new script
  • Loading branch information
TheAssassin committed Dec 13, 2020
1 parent 15ea9fa commit 3afbde9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/build-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if [ ! -f "$dockerfile" ]; then
fi

# speed up build by pulling last built image from quay.io and building the docker file using the old image as a base
docker pull "$image" || true
# if the image hasn't changed, this should be a no-op
docker build --cache-from "$image" -t "$image" -f "$dockerfile" "$this_dir"

Expand Down

0 comments on commit 3afbde9

Please sign in to comment.