File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ source "$ci_dir/shared.sh"
46
46
CACHE_DOMAIN=" ${CACHE_DOMAIN:- ci-caches.rust-lang.org} "
47
47
48
48
if [ -f " $docker_dir /$image /Dockerfile" ]; then
49
- if [ " $CI " != " " ] ; then
49
+ if isCI ; then
50
50
hash_key=/tmp/.docker-hash-key.txt
51
51
rm -f " ${hash_key} "
52
52
echo $image >> $hash_key
@@ -102,7 +102,7 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
102
102
CACHE_IMAGE_TAG=${REGISTRY} /${REGISTRY_USERNAME} /rust-ci-cache:${cksum}
103
103
104
104
# On non-CI jobs, we don't do any caching.
105
- if [[ " $CI " == " " ]] ;
105
+ if ! isCI ;
106
106
then
107
107
retry docker build --rm -t rust-ci -f " $dockerfile " " $context "
108
108
# On PR CI jobs, we don't have permissions to write to the registry cache,
289
289
command=(/checkout/src/ci/run.sh)
290
290
fi
291
291
292
- if [ " $CI " != " " ] ; then
292
+ if isCI ; then
293
293
# Get some needed information for $BASE_COMMIT
294
294
#
295
295
# This command gets the last merge commit which we'll use as base to list
You can’t perform that action at this time.
0 commit comments