@jahia/cypress 7.3.0 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ci.build.sh +17 -1
- package/package.json +1 -1
package/ci.build.sh
CHANGED
|
@@ -41,4 +41,20 @@ if [ -d ./jahia-module ]; then
|
|
|
41
41
|
fi
|
|
42
42
|
YARN_VERSION=${YARN_VERSION:-1.22.19}
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
# Use Docker buildx with cache if enabled via environment variables
|
|
45
|
+
if [ "$DOCKER_BUILD_CACHE_ENABLED" = "true" ]; then
|
|
46
|
+
echo "Docker cache is enabled, building using 'docker buildx build'"
|
|
47
|
+
echo "cache-from: $DOCKER_BUILDX_CACHE_FROM"
|
|
48
|
+
echo "cache-to: $DOCKER_BUILDX_CACHE_TO"
|
|
49
|
+
docker buildx build \
|
|
50
|
+
--cache-from "$DOCKER_BUILDX_CACHE_FROM" \
|
|
51
|
+
--cache-to "$DOCKER_BUILDX_CACHE_TO" \
|
|
52
|
+
--build-arg YARN_VERSION=${YARN_VERSION} \
|
|
53
|
+
-f $BASEDIR/env.Dockerfile \
|
|
54
|
+
-t ${TESTS_IMAGE} \
|
|
55
|
+
--load \
|
|
56
|
+
.
|
|
57
|
+
else
|
|
58
|
+
echo "Docker cache is disabled, building using 'docker build'"
|
|
59
|
+
docker build --build-arg YARN_VERSION=${YARN_VERSION} -f $BASEDIR/env.Dockerfile -t ${TESTS_IMAGE} .
|
|
60
|
+
fi
|