Skip to content

Commit ed0fa4c

Browse files
Merge pull request #68 from fretb/bug/fix-ci-workflow
fix: CI workflow prereqs
2 parents 66cc304 + 0294715 commit ed0fa4c

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)