CI: fix dependency caching
This commit is contained in:
parent
7807f7aa4d
commit
a505b54287
@ -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 && \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user