From 57e7576fe89e3311e18e2537367dfc6e3e6e4217 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Fri, 20 Dec 2024 11:21:12 +0000 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! Ensure that jobs run with the controller service account if no service account is specified. --- docker-image-worker/podman-preauth.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-image-worker/podman-preauth.sh b/docker-image-worker/podman-preauth.sh index cebd935..e731cf2 100755 --- a/docker-image-worker/podman-preauth.sh +++ b/docker-image-worker/podman-preauth.sh @@ -3,6 +3,8 @@ set -e PODMAN_AUTH_FILE="/home/runner/.config/containers/auth.json" +# Sleep for a 1-5 seconds to avoid ddosing the registry with auth requests +sleep $((1 + RANDOM % 5)) # Initialize the auth file if it doesn't exist or is empty mkdir -p $(dirname $PODMAN_AUTH_FILE) if [ ! -s "$PODMAN_AUTH_FILE" ]; then