Files
qdrant/tests/openapi_integration_test.sh
Jesse b67c655ddb Add caching of docker layers in CI (#1856)
* Add caching of docker layers in CI

Build required docker images for CI in a workflow step using buildkit's
gha cache type. This will populate the local layer cache from github
actions' cache. Builds in subsequent CI steps will be nearly instant,
because all layers can be reused.

* add minor change to see if build time is any faster

---------

Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
2023-05-08 17:02:29 +02:00

15 lines
375 B
Bash
Executable File

#!/bin/bash
set -ex
# Ensure current path is project root
cd "$(dirname "$0")/../"
cp docs/redoc/master/openapi.json openapi/tests/openapi.json
docker run --rm \
--network=host \
-e OPENAPI_FILE='openapi.json' \
-v "${PWD}"/openapi/tests:/code \
"$(docker buildx build --load -q ./openapi/tests)" sh -c /code/run_docker.sh