Skip to content

Commit 0294715

Browse files
committed
fix: CI workflow prereqs
66cc304 changes to the same CI workflow definition as Bunny uses, but the `before_build.sh` script was not adapted for it.
1 parent 66cc304 commit 0294715

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/ci/before_build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
CTL=${RUBY_RABBITMQ_HTTP_API_CLIENT_RABBITMQCTL:-"sudo rabbitmqctl"}
44
PLUGINS=${RUBY_RABBITMQ_HTTP_API_CLIENT_RABBITMQ_PLUGINS:-"sudo rabbitmq-plugins"}
55

6+
case $CTL in
7+
DOCKER*)
8+
PLUGINS="docker exec ${CTL##*:} rabbitmq-plugins"
9+
CTL="docker exec ${CTL##*:} rabbitmqctl";;
10+
esac
11+
612
echo "Will use rabbitmqctl at ${CTL}"
713
echo "Will use rabbitmq-plugins at ${PLUGINS}"
814

0 commit comments

Comments
 (0)