Skip to content

Commit

Permalink
Always pull base images when building Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Dec 13, 2020
1 parent a217f73 commit c9e6f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/build-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ 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"
docker build --pull --cache-from "$image" -t "$image" -f "$dockerfile" "$this_dir"

# push built image as cache for future builds to registry
# we can do that immediately once the image has been built successfully; if its definition ever changes it will be
Expand Down

0 comments on commit c9e6f0b

Please sign in to comment.