diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index fcd5a8c..29faae3 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -177,31 +177,26 @@ jobs: . - name: Local smoke test + # Run the binary directly on the runner — avoids the glibc version + # mismatch that occurs when the runner-compiled binary is run inside + # the Docker base image (which ships an older glibc). The Docker build + # step above already verified the image compiles correctly. run: | set -euo pipefail - IMAGE="marketing:${{ steps.tag.outputs.tag }}" - - docker run -d --name dev-smoke \ - -p 8080:8080 \ - -e PORT=8080 \ - -e NODE_ENV=production \ - -e LANDING_ROOT=/srv/landing \ - -e SKIP_K3S=1 \ - "$IMAGE" + PORT=8080 dist/neuron-landing & + SERVER_PID=$! for i in $(seq 1 15); do STATUS=$(curl -sSo /dev/null -w "%{http_code}" --max-time 5 http://localhost:8080/ || echo "000") echo "Attempt $i/15: HTTP $STATUS" if [ "$STATUS" = "200" ]; then echo "Dev smoke test PASSED" - docker stop dev-smoke && docker rm dev-smoke + kill "$SERVER_PID" 2>/dev/null || true exit 0 fi sleep 3 done - echo "--- container logs ---" - docker logs dev-smoke || true - docker stop dev-smoke && docker rm dev-smoke || true + kill "$SERVER_PID" 2>/dev/null || true echo "Dev smoke test FAILED" exit 1