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}"
14
14
readonly docker_name_prefix=' rabbitmq-amqp-dotnet-client'
15
15
readonly docker_network_name=" $docker_name_prefix -network"
16
16
17
- if [ -z GITHUB_ACTIONS ]
17
+ if [[ ! -v GITHUB_ACTIONS ] ]
18
18
then
19
19
GITHUB_ACTIONS=' false'
20
20
fi
@@ -126,7 +126,7 @@ function get_rabbitmq_id
126
126
local rabbitmq_docker_id
127
127
rabbitmq_docker_id=" $( docker inspect --format=' {{.Id}}' " $rabbitmq_docker_name " ) "
128
128
echo " [INFO] '$rabbitmq_docker_name ' docker id is '$rabbitmq_docker_id '"
129
- if [ -z GITHUB_OUTPUT ]
129
+ if [[ -v GITHUB_OUTPUT ] ]
130
130
then
131
131
if [[ -f $GITHUB_OUTPUT ]]
132
132
then
@@ -146,8 +146,14 @@ function install_ca_certificate
146
146
openssl version -d
147
147
set -o errexit
148
148
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
149
155
echo " [WARNING] you must install '$GITHUB_WORKSPACE /.ci/certs/ca_certificate.pem' manually into your trusted root store"
150
-
156
+ fi
151
157
152
158
openssl s_client -connect localhost:5671 \
153
159
-CAfile " $GITHUB_WORKSPACE /.ci/certs/ca_certificate.pem" \
You can’t perform that action at this time.
0 commit comments