@jahia/cypress 7.2.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/dist/utils/JCRHelper.js +1 -1
- package/package.json +1 -1
- package/src/utils/JCRHelper.ts +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
|
package/dist/utils/JCRHelper.js
CHANGED
|
@@ -142,6 +142,6 @@ var copyNode = function (pathOrId, destParentPathOrId, destName, apolloOptions)
|
|
|
142
142
|
pathOrId: pathOrId,
|
|
143
143
|
destParentPathOrId: destParentPathOrId,
|
|
144
144
|
destName: destName
|
|
145
|
-
}, mutationFile: 'graphql/copyNode.graphql' }));
|
|
145
|
+
}, mutationFile: 'graphql/jcr/mutation/copyNode.graphql' }));
|
|
146
146
|
};
|
|
147
147
|
exports.copyNode = copyNode;
|
package/package.json
CHANGED
package/src/utils/JCRHelper.ts
CHANGED
|
@@ -179,6 +179,6 @@ export const copyNode = (pathOrId: string, destParentPathOrId: string, destName?
|
|
|
179
179
|
destParentPathOrId: destParentPathOrId,
|
|
180
180
|
destName: destName
|
|
181
181
|
},
|
|
182
|
-
mutationFile: 'graphql/copyNode.graphql'
|
|
182
|
+
mutationFile: 'graphql/jcr/mutation/copyNode.graphql'
|
|
183
183
|
});
|
|
184
184
|
};
|