Commit graph

13 commits

Author SHA1 Message Date
Ashwin Kumar Sivakumar
3e2f3dd85d perf(ci): cache cargo registry and target dir across image builds
All checks were successful
build-and-release / build (employees) (push) Successful in 5m50s
build-and-release / build (developers) (push) Successful in 6m1s
build-and-release / build (catering-services) (push) Successful in 6m29s
build-and-release / build (cron) (push) Successful in 6m45s
build-and-release / build (companies) (push) Successful in 7m13s
build-and-release / build (customers) (push) Successful in 7m27s
build-and-release / build (fitness-trainers) (push) Successful in 1m57s
build-and-release / build (gateway) (push) Successful in 1m52s
build-and-release / build (jobs) (push) Successful in 1m9s
build-and-release / build (graphic-designers) (push) Successful in 2m24s
build-and-release / build (job-seekers) (push) Successful in 2m32s
build-and-release / build (makeup-artists) (push) Successful in 2m0s
build-and-release / build (leads) (push) Successful in 2m39s
build-and-release / build (tutors) (push) Successful in 1m40s
build-and-release / build (ugc-content-creators) (push) Successful in 1m38s
build-and-release / build (social-media-managers) (push) Successful in 2m39s
build-and-release / build (payments) (push) Successful in 3m45s
build-and-release / build (video-editors) (push) Successful in 1m41s
build-and-release / build (photographers) (push) Successful in 4m38s
build-and-release / build (users) (push) Successful in 7m27s
Dockerfile.simple had no build caching at all - every push recompiled the
full dependency tree from scratch for every service, in release mode,
targeting musl with static OpenSSL (the slowest possible combination).
BuildKit cache mounts for /app/target and the cargo registry/git caches
persist across builds on the same runner node and are shared across all
20 services, since they overlap heavily on workspace dependencies.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-16 21:07:33 +05:30
Ashwin Kumar Sivakumar
d422139e48 fix(ci): remove redundant rustup install now that base image already has it
Some checks failed
build-and-release / build (push) Failing after 2m44s
The official rust:alpine base (unlike whatever image the old defunct
registry.nxtgauge.com mirror actually held) already ships a full
rustup-installed toolchain, so the extra `curl rustup.rs | sh` step
now fails with "cannot install while Rust is installed". Drop it and
the /root/.cargo/bin PATH override (the base image already sets PATH
to its own /usr/local/cargo/bin) - just add the musl target, which the
existing rustup binary can do directly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-07 23:41:31 +05:30
Ashwin Kumar Sivakumar
ae9c38a3af fix(ci): point Dockerfile.simple at ci.nxtgauge.com instead of the defunct registry.nxtgauge.com mirror
Some checks failed
build-and-release / build (push) Failing after 2m36s
registry.nxtgauge.com was set up back in April for the old Woodpecker
CI (commit 09df032) as a manual one-time mirror of rust:alpine to
dodge Docker Hub rate limits. It never had a real ingress route wired
up on the current cluster (confirmed: no Ingress/IngressRoute matches
that host anywhere), so every build has been failing at the base-image
pull. ci.nxtgauge.com is the registry actually in active use since the
Forgejo migration, and the build job already authenticates against it
for pushing service images, so no new credentials are needed. Manually
mirrored rust:alpine there as a one-time step.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-07 23:36:23 +05:30
Ashwin Kumar Sivakumar
0b88294486 Update Dockerfile.simple 2026-07-02 06:51:03 +05:30
Ashwin Kumar Sivakumar
9b03bec22f ci: deploy backend via github actions and ghcr 2026-06-14 22:49:06 +05:30
Tracewebstudio Dev
b18aca10d3 ci: use rustup toolchain for musl builds 2026-04-17 03:10:14 +02:00
Tracewebstudio Dev
3b27ddf356 ci: fix rust musl target build 2026-04-17 03:06:56 +02:00
Tracewebstudio Dev
fd99e8cea1 ci: fix kaniko builds and registry settings 2026-04-17 03:04:02 +02:00
Tracewebstudio Dev
770ebcbfc6 fix(build): remove rustup target in Dockerfile.simple
- rust:alpine image already includes x86_64-unknown-linux-musl target
- Remove rustup target add command causing 'not found' error
2026-04-16 20:54:24 +02:00
Tracewebstudio Dev
09df0323f3 fix(ci): use mirrored rust:alpine from private registry
- Change FROM rust:alpine to FROM registry.nxtgauge.com/rust:alpine
- Fixes Docker Hub rate limiting/UNAUTHORIZED errors in Woodpecker builds
- Requires manually pulling and pushing rust:alpine to registry.nxtgauge.com first
2026-04-16 18:37:17 +02:00
Ashwin Kumar
f4515b22a2 fix(ci): standardize backend service/image naming to hyphen format 2026-04-11 15:04:15 +02:00
Ashwin Kumar
7aeaeb18ab fix(ci): build single Rust service with workspace-safe Dockerfile 2026-04-10 20:19:53 +02:00
Ashwin Kumar
39107e4fa4 fix(woodpecker): use simple Dockerfile and reduce build complexity
- Replace complex caching with simple Dockerfile

- Remove cargo-chef complexity that was slowing builds

- Add .woodpecker-base.yml for separate base image builds

- Add Dockerfile.simple for faster builds

- Add Dockerfile.ultrafast for when base image exists
2026-04-10 12:56:28 +02:00