test: do bash shell

This commit is contained in:
Minoplhy 2025-01-12 11:14:06 +07:00 committed by GitHub
parent 953b9b22e7
commit cb86017d93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ jobs:
- name: Run script inside Alpine chroot as root - name: Run script inside Alpine chroot as root
run: | run: |
apk add curl bash apk add curl bash bash-completion
shell: alpine.sh --root {0} shell: alpine.sh --root {0}
- name: Set up environment variables - name: Set up environment variables
@ -33,6 +33,9 @@ jobs:
- name: Run nginx Builds - name: Run nginx Builds
run: | run: |
#!/bin/bash #!/bin/bash
BASH=$(which bash)
$BASH -l
echo "${NGINX_TAG}" echo "${NGINX_TAG}"
TAGS="vanilla" TAGS="vanilla"
OPTIONS="--type=nginx" OPTIONS="--type=nginx"
@ -42,7 +45,7 @@ jobs:
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]}"
#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
HOMEDIRECTORY=~/nginx_scriptbox HOMEDIRECTORY=~/nginx_scriptbox