From a70bb24a421bd3e751ba83b23c897f8a758b5c5c Mon Sep 17 00:00:00 2001 From: Chris Weaver <127190808+OBD-ChrisWeaver@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:39:57 +0100 Subject: [PATCH] fix #2360 Check ping or Wget to confirm Github is up in job.yaml (#2631) --- scripts/helmcharts/openreplay/templates/job.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay/templates/job.yaml b/scripts/helmcharts/openreplay/templates/job.yaml index f5f5a259f..b9e596cf6 100644 --- a/scripts/helmcharts/openreplay/templates/job.yaml +++ b/scripts/helmcharts/openreplay/templates/job.yaml @@ -78,7 +78,7 @@ spec: # Function to check if GitHub is available check_github() { for i in {1..10}; do - if ping -c 1 github.com &> /dev/null; then + if ping -c 1 github.com &> /dev/null || wget -q --spider https://github.com; then echo "GitHub is available." git clone {{ .Values.global.dbMigrationUpstreamRepoURL | default "https://github.com/openreplay/openreplay" }} . break