mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-04 02:20:19 +01:00
Cachefixing test (#5793)
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -421,7 +421,7 @@ main() {
|
||||
should_run_test "Stirling-PDF-Ultra-Lite-Version-Check"; then
|
||||
|
||||
export DISABLE_ADDITIONAL_FEATURES=true
|
||||
if ! ./gradlew clean build; then
|
||||
if ! ./gradlew clean build -PnoSpotless; then
|
||||
echo "Gradle build failed with security disabled, exiting script."
|
||||
exit 1
|
||||
fi
|
||||
@@ -431,11 +431,18 @@ main() {
|
||||
EXPECTED_VERSION=$(get_expected_version)
|
||||
echo "Expected version: $EXPECTED_VERSION"
|
||||
|
||||
# Build Ultra-Lite image with embedded frontend (GHCR tag, matching docker-compose-latest-ultra-lite.yml)
|
||||
# Build Ultra-Lite image with embedded frontend (matching docker-compose-latest-ultra-lite.yml)
|
||||
echo "Building ultra-lite image for tests that require it..."
|
||||
docker build --build-arg VERSION_TAG=alpha \
|
||||
if [ -n "${ACTIONS_RUNTIME_TOKEN}" ] && { [ -n "${ACTIONS_RESULTS_URL}" ] || [ -n "${ACTIONS_CACHE_URL}" ]; }; then
|
||||
DOCKER_CACHE_ARGS_ULTRA_LITE="--cache-from type=gha,scope=stirling-pdf-ultra-lite --cache-to type=gha,mode=max,scope=stirling-pdf-ultra-lite"
|
||||
else
|
||||
DOCKER_CACHE_ARGS_ULTRA_LITE=""
|
||||
fi
|
||||
docker buildx build --build-arg VERSION_TAG=alpha \
|
||||
-t docker.stirlingpdf.com/stirlingtools/stirling-pdf:ultra-lite \
|
||||
-f ./docker/embedded/Dockerfile.ultra-lite .
|
||||
-f ./docker/embedded/Dockerfile.ultra-lite \
|
||||
--load \
|
||||
${DOCKER_CACHE_ARGS_ULTRA_LITE} .
|
||||
else
|
||||
echo "Skipping ultra-lite image build - no ultra-lite tests in rerun list"
|
||||
fi
|
||||
@@ -482,7 +489,7 @@ main() {
|
||||
should_run_test "Stirling-PDF-Fat-Disable-Endpoints-Version-Check"; then
|
||||
|
||||
export DISABLE_ADDITIONAL_FEATURES=false
|
||||
if ! ./gradlew clean build; then
|
||||
if ! ./gradlew clean build -PnoSpotless; then
|
||||
echo "Gradle build failed with security enabled, exiting script."
|
||||
exit 1
|
||||
fi
|
||||
@@ -491,11 +498,18 @@ main() {
|
||||
EXPECTED_VERSION=$(get_expected_version)
|
||||
echo "Expected version with security enabled: $EXPECTED_VERSION"
|
||||
|
||||
# Build Fat (Security) image with embedded frontend for GHCR tag used in all 'fat' compose files
|
||||
# Build Fat (Security) image with embedded frontend (matching all 'fat' compose files)
|
||||
echo "Building fat image for tests that require it..."
|
||||
docker build --no-cache --pull --build-arg VERSION_TAG=alpha \
|
||||
if [ -n "${ACTIONS_RUNTIME_TOKEN}" ] && { [ -n "${ACTIONS_RESULTS_URL}" ] || [ -n "${ACTIONS_CACHE_URL}" ]; }; then
|
||||
DOCKER_CACHE_ARGS_FAT="--cache-from type=gha,scope=stirling-pdf-fat --cache-to type=gha,mode=max,scope=stirling-pdf-fat"
|
||||
else
|
||||
DOCKER_CACHE_ARGS_FAT=""
|
||||
fi
|
||||
docker buildx build --build-arg VERSION_TAG=alpha \
|
||||
-t docker.stirlingpdf.com/stirlingtools/stirling-pdf:fat \
|
||||
-f ./docker/embedded/Dockerfile.fat .
|
||||
-f ./docker/embedded/Dockerfile.fat \
|
||||
--load \
|
||||
${DOCKER_CACHE_ARGS_FAT} .
|
||||
else
|
||||
echo "Skipping fat image build - no fat tests in rerun list"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user