1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-06-30 14:40:10 +02:00

Update test.sh

This commit is contained in:
Anthony Stirling 2024-01-02 21:17:25 +00:00 committed by GitHub
parent c23a5ad5fb
commit 56a1867270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
test.sh
View File

@ -69,7 +69,12 @@ main() {
SECONDS=0
export DOCKER_ENABLE_SECURITY=false
./gradlew clean build
# Run the gradlew build command and check if it fails
if ! ./gradlew clean build; then
echo "Gradle build failed with security disabled, exiting script."
exit 1
fi
# Building Docker images
docker build --build-arg VERSION_TAG=alpha -t frooodle/s-pdf:latest -f ./Dockerfile .
@ -82,7 +87,12 @@ main() {
run_tests "Stirling-PDF" "./exampleYmlFiles/docker-compose-latest.yml"
export DOCKER_ENABLE_SECURITY=true
./gradlew clean build
# Run the gradlew build command and check if it fails
if ! ./gradlew clean build; then
echo "Gradle build failed with security enabled, exiting script."
exit 1
fi
# Building Docker images with security enabled
docker build --build-arg VERSION_TAG=alpha -t frooodle/s-pdf:latest -f ./Dockerfile .