Merge pull request #33 from hercules-ci/fix-exec-hardcoded-serviceName

Fix arion exec
This commit is contained in:
Domen Kožar 2019-03-29 09:32:32 +07:00 committed by GitHub
commit 3f36a085e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ run_exec() {
jq < "$docker_compose_yaml" \
--arg serviceName "$serviceName" \
-r \
'.["x-arion"].serviceInfo.webserver.defaultExec | tostream | .[1] | select(.)'
'.["x-arion"].serviceInfo[$serviceName].defaultExec | tostream | .[1] | select(.)'
)
docker-compose -f $docker_compose_yaml exec "$serviceName" "${default_args[@]}"
;;