commit | 4d0468a539ac3a69373fd60451dc3660577944f6 | [log] [tgz] |
---|---|---|
author | Carlos Sanchez <carlos@apache.org> | Tue Mar 07 19:37:18 2017 +0100 |
committer | Carlos Sanchez <carlos@apache.org> | Tue Mar 07 19:37:18 2017 +0100 |
tree | 3f679c27284f3f026425dbf7e3eb14b03e5722e6 | |
parent | b857bb25489c49a0070277d3a592a6443b23cd0f [diff] [blame] |
pull the image to tag, in case it was built before
diff --git a/publish.sh b/publish.sh index 4fc899f..5af7683 100755 --- a/publish.sh +++ b/publish.sh
@@ -19,6 +19,8 @@ local from="jenkinsci/jenkins:$1" local to="jenkinsci/jenkins:$2" local out + + docker pull "$from" if out=$(docker tag -f "$from" "$to" 2>&1); then echo "$out" else