CI: fix dependency caching

This commit is contained in:
Grégoire Henry 2017-12-05 15:15:36 +01:00 committed by Benjamin Canou
parent 7807f7aa4d
commit a505b54287
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,14 @@
FROM $base_image
## /!\ /!\ /!\ /!\/!\ /!\ /!\
## /!\ Don't forget fu update the variables 'dependencies' in
## /!\ `create_docker_image.build_deps.sh` when modifyiing the
## /!\ 'COPY'edfiles.
## /!\ /!\ /!\ /!\/!\ /!\ /!\
COPY scripts/install_build_deps.sh scripts/version.sh tezos/scripts/
COPY tezos-deps.opam tezos/
RUN sudo apk update && \
opam config exec -- ./tezos/scripts/install_build_deps.sh && \
opam install ocp-indent && \

View File

@ -28,7 +28,7 @@ sed -e 's|$base_image|'"$base_image"'|g' \
scripts/Dockerfile.build_deps.in > Dockerfile
## Lookup for for prebuilt dependencies...
dependencies="scripts/install_build_deps.sh tezos.opam Dockerfile"
dependencies="scripts/install_build_deps.sh scripts/version.sh tezos-deps.opam Dockerfile"
dependencies_sha1=$(docker inspect --format="{{ .RootFS.Layers }}" --type=image $base_image | sha1sum - $dependencies | sha1sum | tr -d ' -')
if [ ! -z "$cached_image" ]; then
echo