Commit 5f10c295 authored by Emeric Verschuur's avatar Emeric Verschuur

[FIX] service with custom commands with default entrypoint

parent 49b1452b
......@@ -678,8 +678,8 @@ case "$CITBX_JOB_EXECUTOR" in
shift 2
if [ -n "$1" ]; then
args+=(--entrypoint "$1")
shift
fi
shift || true
print_info "Starting service $name..."
docker run -d "${args[@]}" "${CITBX_DOCKER_RUN_ARGS[@]}" "$image" "$@"
# Get container IP and add --add-host options
......@@ -707,6 +707,9 @@ case "$CITBX_JOB_EXECUTOR" in
for i in $(seq 0 $(gitlab_ci_query -r "$p.services[$s].entrypoint | length - 1")); do
service_commands+=("$(eval echo "$(gitlab_ci_query "$p.services[$s].entrypoint[$i]")")")
done
else
# Empty: NO entrypoint
service_commands+=("")
fi
# Read command property
if [ "$(gitlab_ci_query -r "$p.services[$s].command | type")" == "array" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment