Review how we mount the cache from a PVC volume like also the prepare step of ClusterBuildStrategy
as shipwright do not use a workspace defintion as Tekton but Kubernetes Volume and VolumeMount
# TODO: To be reviewed
echo "> Creating the cache directory if it is not empty"
if [ ! -d "$DIRECTORY" ]; then
echo "> Creating cache: /layers/$(params.CACHE_DIR_NAME)"
mkdir -p /layers/$(params.CACHE_DIR_NAME)
chown -R "$(params.USER_ID):$(params.GROUP_ID)" /layers/$(params.CACHE_DIR_NAME)
fi
# TODO: To be reviewed as shipwright don't support like Tekton workspaces
#if [[ "$(workspaces.cache.bound)" == "true" ]]; then
# echo "> Setting permissions on '$(workspaces.cache.path)'..."
# chown -R "$(params.USER_ID):$(params.GROUP_ID)" "$(workspaces.cache.path)"
#fi
TODO
Review how we mount the cache from a PVC volume like also the prepare step of ClusterBuildStrategy as shipwright do not use a workspace defintion as Tekton but Kubernetes Volume and VolumeMount