nxtgauge-backend-rust/Dockerfile.test
Ashwin Kumar Sivakumar 1106b0cb8c
Some checks failed
build-and-release / build (customers) (push) Successful in 23s
build-and-release / build (catering-services) (push) Successful in 29s
build-and-release / build (developers) (push) Successful in 34s
build-and-release / build (companies) (push) Successful in 41s
build-and-release / build (gateway) (push) Successful in 13s
build-and-release / build (fitness-trainers) (push) Successful in 28s
build-and-release / build (jobs) (push) Successful in 13s
build-and-release / build (job-seekers) (push) Successful in 23s
build-and-release / build (makeup-artists) (push) Successful in 15s
build-and-release / build (graphic-designers) (push) Successful in 40s
build-and-release / build (social-media-managers) (push) Successful in 12s
build-and-release / build (photographers) (push) Successful in 22s
build-and-release / build (tutors) (push) Successful in 21s
build-and-release / build (employees) (push) Failing after 1m40s
build-and-release / build (cron) (push) Failing after 1m42s
build-and-release / build (users) (push) Successful in 20s
build-and-release / build (payments) (push) Successful in 57s
build-and-release / build (video-editors) (push) Successful in 20s
backend-integration-tests / ai-credits (push) Failing after 41s
build-and-release / build (ugc-content-creators) (push) Successful in 1m10s
fix: remove invalid trailing line from Dockerfile.test
My own previous trivial-touch commit appended a bare '-- ...' line
without a # prefix, which isn't valid Dockerfile syntax and broke the
buildx parse ('unknown instruction: --') - explains why the last CI
run died immediately again despite the actual fix (corrected password)
being in place.
2026-08-13 20:19:59 +05:30

13 lines
613 B
Text

# Runs crates/db's Postgres-backed integration tests as a build step.
# Not published anywhere - build.yaml's DOCKER_HOST/buildx setup builds this
# ad-hoc and discards the image; only whether the RUN step exits 0 matters.
# TEST_DATABASE_URL is passed as a buildx secret (not a build-arg) so it
# never lands in the image's layer history/cache metadata.
FROM rust:1-bookworm
WORKDIR /workspace
COPY . .
RUN --mount=type=secret,id=test_db_url,required=true \
export TEST_DATABASE_URL="$(cat /run/secrets/test_db_url)" && \
cargo test -p db --test ai_credits --test ai_credits_reaper -- --test-threads=1