fix #2360 Check ping or Wget to confirm Github is up in job.yaml (#2631)

This commit is contained in:
Chris Weaver 2024-10-03 15:39:57 +01:00 committed by GitHub
parent 46aebe9a8c
commit e95611c1a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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