Skip to content

Commit 47f325a

Browse files
Merge #377
377: Avoid pulling if image already exists locally. r=adamgreig a=reitermarkus This avoids overwriting the local image when making changes to images locally. Co-authored-by: Markus Reiter <me@reitermark.us>
2 parents 684fed5 + 486499e commit 47f325a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-docker-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ run() {
1010
local image_name="rustembedded/cross:${1}"
1111
local cache_from_args=
1212

13-
if docker pull "${image_name}"; then
13+
if docker image inspect "${image_name}" &>/dev/null || docker pull "${image_name}"; then
1414
cache_from_args=(--cache-from "${image_name}")
1515
fi
1616

0 commit comments

Comments
 (0)