diff --git a/scripts/build_docker.sh b/scripts/build_docker.sh index 2717f9e..5c29fd3 100755 --- a/scripts/build_docker.sh +++ b/scripts/build_docker.sh @@ -9,6 +9,6 @@ export DOCKER_BUILDKIT=1 tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}" latest_tag="$REGISTRY/$SERVICE:latest" -docker build -t "$tag" -f $TMP/build_docker.Dockerfile . +docker build -t "$tag" --cache-from "$latest_tag" -f $TMP/build_docker.Dockerfile . docker tag "$tag" "$latest_tag" docker push "$tag" "$latest_tag"