Skip to content

Commit 28e3237

Browse files
authored
[FIX] Make --detach argument explicit to handle future Docker Swarm changes (#30)
1 parent 50a0102 commit 28e3237

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ if [[ "${INPUT_MODE}" == "swarm" ]];then
132132
echo "::debug::Adding: --with-registry-auth"
133133
EXTRA_ARGS+=("--with-registry-auth")
134134
fi
135-
if [[ "${INPUT_DETACH}" != "true" ]];then
135+
if [[ "${INPUT_DETACH}" == "true" ]];then
136+
echo "::debug::Adding: --detach=true"
137+
EXTRA_ARGS+=("--detach=true")
138+
else
136139
echo "::debug::Adding: --detach=false"
137140
EXTRA_ARGS+=("--detach=false")
138141
fi

0 commit comments

Comments
 (0)