Update test.sh
This commit is contained in:
14
test.sh
14
test.sh
@@ -69,7 +69,12 @@ main() {
|
|||||||
SECONDS=0
|
SECONDS=0
|
||||||
|
|
||||||
export DOCKER_ENABLE_SECURITY=false
|
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
|
# Building Docker images
|
||||||
docker build --build-arg VERSION_TAG=alpha -t frooodle/s-pdf:latest -f ./Dockerfile .
|
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"
|
run_tests "Stirling-PDF" "./exampleYmlFiles/docker-compose-latest.yml"
|
||||||
|
|
||||||
export DOCKER_ENABLE_SECURITY=true
|
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
|
# Building Docker images with security enabled
|
||||||
docker build --build-arg VERSION_TAG=alpha -t frooodle/s-pdf:latest -f ./Dockerfile .
|
docker build --build-arg VERSION_TAG=alpha -t frooodle/s-pdf:latest -f ./Dockerfile .
|
||||||
|
|||||||
Reference in New Issue
Block a user