fix: increase healthcheck timeout and force-cleanup PR images

CI site took longer than 15 seconds to become ready.
Cleanup step needed --force flag when image is in use.
This commit is contained in:
2026-05-17 03:19:15 -07:00
parent 4a09bd044a
commit 301ad2132f
+4 -4
View File
@@ -81,14 +81,14 @@ jobs:
- name: Wait for CI site to be healthy
run: |
for i in {1..30}; do
for i in {1..60}; do
if curl -sf https://euchre-ci.notsosm.art/api/health > /dev/null 2>&1; then
echo "CI site is healthy"
exit 0
fi
sleep 0.5
sleep 1
done
echo "CI site failed to become healthy after 15 seconds"
echo "CI site failed to become healthy after 60 seconds"
docker compose -f /apps/euchre_camp_ci/docker-compose.yml logs app
exit 1
@@ -100,7 +100,7 @@ jobs:
- name: Cleanup PR images
if: always()
run: |
docker rmi ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:pr-${{ steps.info.outputs.pr_number }}-${{ steps.info.outputs.short_sha }} || true
docker rmi --force ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:pr-${{ steps.info.outputs.pr_number }}-${{ steps.info.outputs.short_sha }} || true
analyze-bump-type:
runs-on: ubuntu-latest