re-push after clean up mess up

This commit is contained in:
minoplhy 2024-10-11 01:07:21 +07:00
parent c5581afcfa
commit 99ae7c2e79
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
2 changed files with 15 additions and 18 deletions

View File

@ -19,6 +19,9 @@ jobs:
echo "NGINX_TAG=${NGINX_TAG}" >> $GITHUB_ENV echo "NGINX_TAG=${NGINX_TAG}" >> $GITHUB_ENV
echo "NGINX_TAG=${NGINX_TAG}" echo "NGINX_TAG=${NGINX_TAG}"
- name: Run freenginx Builds
run: |
#!/bin/bash
TAGS=("vanilla" "allstar" "lua" "modsecurity") TAGS=("vanilla" "allstar" "lua" "modsecurity")
OPTIONS=( OPTIONS=(
"--type=freenginx" "--type=freenginx"
@ -27,15 +30,8 @@ jobs:
"--modsecurity --type=freenginx" "--modsecurity --type=freenginx"
) )
echo "TAGS=${TAGS[*]}" >> $GITHUB_ENV
echo "OPTIONS=${OPTIONS[*]}" >> $GITHUB_ENV
- name: Run freenginx Builds
run: |
#!/bin/bash
echo "This Task will be run using the following tag: ${NGINX_TAG}"
for i in ${!TAGS[@]}; do for i in ${!TAGS[@]}; do
echo "This Task will be run using the following tag: ${NGINX_TAG}"
echo "This Task will be run using the following version: ${TAGS[$i]}" echo "This Task will be run using the following version: ${TAGS[$i]}"
echo "This Task will be run using the following options: ${OPTIONS[$i]}" echo "This Task will be run using the following options: ${OPTIONS[$i]}"

View File

@ -19,20 +19,21 @@ jobs:
echo "NGINX_TAG=${NGINX_TAG}" >> $GITHUB_ENV echo "NGINX_TAG=${NGINX_TAG}" >> $GITHUB_ENV
echo "NGINX_TAG=${NGINX_TAG}" echo "NGINX_TAG=${NGINX_TAG}"
TAGS=("vanilla" "allstar" "lua" "modsecurity")
OPTIONS=(
"--type=nginx"
"--lua --modsecurity --type=nginx"
"--lua --type=nginx"
"--modsecurity --type=nginx"
)
echo "TAGS=${TAGS[*]}" >> $GITHUB_ENV
echo "OPTIONS=${OPTIONS[*]}" >> $GITHUB_ENV
- name: Run nginx Builds - name: Run nginx Builds
run: | run: |
TAGS=("vanilla" "allstar" "lua" "modsecurity")
OPTIONS=(
"--type=freenginx"
"--lua --modsecurity --type=freenginx"
"--lua --type=freenginx"
"--modsecurity --type=freenginx"
)
for i in ${!TAGS[@]}; do for i in ${!TAGS[@]}; do
echo "This Task will be run using the following tag: ${NGINX_TAG}" echo "This Task will be run using the following tag: ${NGINX_TAG}"
echo "This Task will be run using the following version: ${TAGS[$i]}"
echo "This Task will be run using the following options: ${OPTIONS[$i]}"
curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_script/build.sh | bash -s -- --nginx-tag=${NGINX_TAG} ${OPTIONS[$i]} curl https://raw.githubusercontent.com/minoplhy/scriptbox/main/nginx_build_script/build.sh | bash -s -- --nginx-tag=${NGINX_TAG} ${OPTIONS[$i]}
# Prepare tar file paths # Prepare tar file paths