@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.
Files changed (2) hide show
  1. package/ci.build.sh +17 -1
  2. 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
- docker build --build-arg YARN_VERSION=${YARN_VERSION} -f $BASEDIR/env.Dockerfile -t ${TESTS_IMAGE} .
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/cypress",
3
- "version": "7.3.0",
3
+ "version": "7.4.0",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "lint": "eslint src -c .eslintrc.json --ext .ts --max-warnings=0"