diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cc274e6..bdfa5de 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -237,25 +237,19 @@ jobs: EOF docker compose -f deploy/community/docker-compose.images.yml \ --env-file .tmp/community-smoke.env --profile local-db up -d --wait - ui_address="$(docker compose -f deploy/community/docker-compose.images.yml \ - --env-file .tmp/community-smoke.env port ui 3000)" - ui_url="http://${ui_address}" - printf '%s\n' "$ui_url" > .tmp/community-smoke.url - for attempt in $(seq 1 30); do - if curl --fail --silent --show-error --output /dev/null "$ui_url/"; then - exit 0 - fi - echo "Community UI is not reachable through the published port ($attempt/30)" - sleep 1 - done - echo "Community UI did not become reachable at $ui_url" >&2 - exit 1 - name: Run authenticated Community image smoke env: CRANK_STAGING_ADMIN_EMAIL: owner@crank.test CRANK_STAGING_ADMIN_PASSWORD: ci-admin-password - run: scripts/authenticated-product-smoke.sh "$(cat .tmp/community-smoke.url)" + run: | + set -eu + project_name="$(sed -n 's/^COMPOSE_PROJECT_NAME=//p' .tmp/community-smoke.env)" + docker run --rm --network "${project_name}_default" \ + -e CRANK_STAGING_ADMIN_EMAIL \ + -e CRANK_STAGING_ADMIN_PASSWORD \ + -i python:3.13-alpine \ + python - http://ui:3000 < scripts/authenticated-product-smoke.py - name: Show Community image logs if: failure()