Skip to content

Commit

Permalink
ci: Wait for forge app public image to become available (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb authored Feb 27, 2024
2 parents 8fdf605 + b8669c4 commit 50b6458
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ jobs:
kubectl label --overwrite $node "role=management"
done
- name: Wait for forge application public image
run: |
IMAGE="flowfuse/forge-k8s"
TAG=$(helm show chart ./helm/flowforge | awk -F': ' '/appVersion/ {print $2}')
ATTEMPTS=0
until docker manifest inspect $IMAGE:$TAG || [ $ATTEMPTS -eq 10 ]; do
ATTEMPTS=$((ATTEMPTS+1))
echo "Attempt $ATTEMPTS failed! Trying again in 30 seconds..."
sleep 30
done
if [ $ATTEMPTS -eq 10 ]; then
echo "Failed to inspect remote $IMAGE:$TAG after $ATTEMPTS attempts!"
exit 1
fi
- name: Run chart-testing (install and upgrade)
run: ct install --upgrade --config ./.github/configs/chart-testing.yaml

Expand Down

0 comments on commit 50b6458

Please sign in to comment.