File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ readonly rabbitmq_image="${RABBITMQ_IMAGE:-rabbitmq:4-management}"
1414readonly docker_name_prefix=' rabbitmq-amqp-dotnet-client'
1515readonly docker_network_name=" $docker_name_prefix -network"
1616
17- if [ -z GITHUB_ACTIONS ]
17+ if [[ ! -v GITHUB_ACTIONS ] ]
1818then
1919 GITHUB_ACTIONS=' false'
2020fi
@@ -126,7 +126,7 @@ function get_rabbitmq_id
126126 local rabbitmq_docker_id
127127 rabbitmq_docker_id=" $( docker inspect --format=' {{.Id}}' " $rabbitmq_docker_name " ) "
128128 echo " [INFO] '$rabbitmq_docker_name ' docker id is '$rabbitmq_docker_id '"
129- if [ -z GITHUB_OUTPUT ]
129+ if [[ -v GITHUB_OUTPUT ] ]
130130 then
131131 if [[ -f $GITHUB_OUTPUT ]]
132132 then
@@ -146,8 +146,14 @@ function install_ca_certificate
146146 openssl version -d
147147 set -o errexit
148148
149+ if [[ $GITHUB_ACTIONS == ' true' ]]
150+ then
151+ readonly openssl_store_dir=' /usr/lib/ssl/certs'
152+ sudo cp -vf " $GITHUB_WORKSPACE /.ci/certs/ca_certificate.pem" " $openssl_store_dir "
153+ sudo ln -vsf " $openssl_store_dir /ca_certificate.pem" " $openssl_store_dir /$( openssl x509 -hash -noout -in $openssl_store_dir /ca_certificate.pem) .0"
154+ else
149155 echo " [WARNING] you must install '$GITHUB_WORKSPACE /.ci/certs/ca_certificate.pem' manually into your trusted root store"
150-
156+ fi
151157
152158 openssl s_client -connect localhost:5671 \
153159 -CAfile " $GITHUB_WORKSPACE /.ci/certs/ca_certificate.pem" \
You can’t perform that action at this time.
0 commit comments