Skip to content

Commit

Permalink
Fix wait
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Ruiz <[email protected]>
  • Loading branch information
migruiz4 committed Jan 15, 2025
1 parent 0345b2b commit 71efabf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/index-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
# A single success is enough to pass
while [[ "${status}" != "ok" && $attempts -lt 3 ]]; do
# Check the index.yaml integrity
REMOTE_MD5=($(curl -Ls http://charts.bitnami.com/bitnami/index.yaml | md5sum))
REMOTE_MD5=($(curl -Ls https://charts.bitnami.com/bitnami/index.yaml | md5sum))
REPOSITORY_MD5=($(md5sum bitnami/index.yaml))
# Compare the index.yaml checksums remote and locally
if [[ "${REPOSITORY_MD5[0]}" == "${REMOTE_MD5[0]}" ]]; then
status='ok'
else
attempts=$((attempts+1))
echo "Integrity check failed. Remote checksum '${REMOTE_MD5[0]}' does not match expected '${REPOSITORY_MD5[0]}'";
# Wait 30 seconds
sleep 30
fi
# Wait 30 seconds
sleep 30
done
echo "result=${status}" >> $GITHUB_OUTPUT
- name: Show messages
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Validate helm repository
id: validation-check
run: |
repo="http://charts.bitnami.com/bitnami"
repo="https://charts.bitnami.com/bitnami"
status="fail"
attempts=0
# We want to check for consistent failures
Expand All @@ -84,9 +84,9 @@ jobs:
if helm repo list | grep -q bitnami; then
helm repo remove bitnami
fi
# Wait 30 seconds
sleep 30
fi
# Wait 30 seconds
sleep 30
done
echo "result=${status}" >> $GITHUB_OUTPUT
- name: Show messages
Expand Down

0 comments on commit 71efabf

Please sign in to comment.