test: test all star

This commit is contained in:
Minoplhy 2025-01-12 12:27:07 +07:00 committed by GitHub
parent af83d46b0f
commit a84eb635f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,8 +32,13 @@ jobs:
- name: Run nginx Builds - name: Run nginx Builds
run: | run: |
build_sh='echo "${NGINX_TAG}" build_sh='echo "${NGINX_TAG}"
TAGS="vanilla" TAGS=("vanilla" "allstar" "lua" "modsecurity")
OPTIONS="--type=nginx" OPTIONS=(
"--type=nginx"
"--lua --modsecurity --type=nginx"
"--lua --type=nginx"
"--modsecurity --type=nginx"
)
RUNNING_PATH=$(pwd) RUNNING_PATH=$(pwd)
echo "RUNNING PATH: ${RUNNING_PATH}" # This output where in the system is running echo "RUNNING PATH: ${RUNNING_PATH}" # This output where in the system is running
@ -49,6 +54,17 @@ jobs:
# Prepare tar file paths # Prepare tar file paths
HOMEDIRECTORY=~/nginx_scriptbox HOMEDIRECTORY=~/nginx_scriptbox
TAR_PATH="$HOMEDIRECTORY/nginx/objs" # Base Path TAR_PATH="$HOMEDIRECTORY/nginx/objs" # Base Path
case "${TAGS[$i]}" in
"allstar")
TAR_PATH="$TAR_PATH /opt/nginx-lua-module /usr/local/lua /usr/local/modsecurity"
;;
"lua")
TAR_PATH="$TAR_PATH /opt/nginx-lua-module /usr/local/lua"
;;
"modsecurity")
TAR_PATH="$TAR_PATH /usr/local/modsecurity"
;;
esac
# Create the tarball # Create the tarball
echo "pre-TARing infoiirmation:" echo "pre-TARing infoiirmation:"