diff --git a/docs/connectionCommandOverride.md b/docs/connectionCommandOverride.md index 4b15062..2bf8d91 100644 --- a/docs/connectionCommandOverride.md +++ b/docs/connectionCommandOverride.md @@ -24,7 +24,9 @@ init: digest: "" pullPolicy: IfNotPresent fullOverride: "" - connectionCommandOverride: "apk add curl && curl -I" + + connectionCommandOverride: "curl -I" + preConnectionCommandOverride: "apk add curl" ``` This now creates the following template section: @@ -36,8 +38,9 @@ This now creates the following template section: - sh - -c - | + apk add curl echo 'Trying to reach Gitea on https://gitea.com' - until timeout 10 apk add curl && curl -I https://gitea.com; do + until timeout 10 curl -I https://gitea.com; do sleep 3 echo "Trying again in 3 seconds..." done