File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11language : shell
22sudo : required
3- dist : trusty
3+ dist : xenial
44services :
55 - docker
66addons :
Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ travis_time_start
1919
2020if [ -f " $docker_dir /$image /Dockerfile" ]; then
2121 if [ " $CI " != " " ]; then
22- cksum=$( find $docker_dir /$image $docker_dir /scripts -type f | \
22+ hash_key=/tmp/.docker-hash-key.txt
23+ find $docker_dir /$image $docker_dir /scripts -type f | \
2324 sort | \
24- xargs cat | \
25- sha512sum | \
25+ xargs cat >> $hash_key
26+ docker --version >> $hash_key
27+ cksum=$( sha512sum $hash_key | \
2628 awk ' {print $1}' )
2729 s3url=" s3://$SCCACHE_BUCKET /docker/$cksum "
2830 url=" https://s3-us-west-1.amazonaws.com/$SCCACHE_BUCKET /docker/$cksum "
You can’t perform that action at this time.
0 commit comments