Fail if stack deploy fails even with retries
diff --git a/docker/client/stack.sls b/docker/client/stack.sls
index 985a6fc..626b310 100644
--- a/docker/client/stack.sls
+++ b/docker/client/stack.sls
@@ -76,6 +76,7 @@
echo "Stack creation failed, retrying in 3 seconds.." >&2;
sleep 3;
i=$[ $i + 1 ];
+ exit 1;
done
- shell: /bin/bash
- cwd: {{ client.compose.base }}/{{ app }}
@@ -96,6 +97,7 @@
echo "Stack update failed, retrying in 3 seconds.." >&2;
sleep 3;
i=$[ $i + 1 ];
+ exit 1;
done
- shell: /bin/bash
- cwd: {{ client.compose.base }}/{{ app }}