Commit graph asxpio/.forgejo/workflows/test.yaml
Author SHA1 Message Date
4927d2fec8
Drop the container pipeline: the servers run the flake
All checks were successful
CI / test (push) Successful in 10m5s
asxpio-services runs the site and the monitor worker from this flake
(services.asxpio) and the containers are gone. The Dockerfile,
.dockerignore, docker-compose.yml and the Kaniko and deploy jobs go; CI
runs the tests and builds the package on every push, main included.
CLAUDE.md describes the new setup: storage on ops over the private
network, settings and secrets in iac's sops, no deploy secrets here.

Assisted-by: Claude:opus-5-5
2026-11-17 14:19:42 +04:00
4c0b6c3eef
Build the app as a Nix package, with a NixOS module to run it
All checks were successful
Build and Deploy to Production / test (push) Successful in 10m15s
Build and Deploy to Production / build (push) Successful in 59s
Build and Deploy to Production / deploy (push) Successful in 1m42s
packages.default is the app with its gems (bundlerEnv from Gemfile.lock
and gemset.nix, generated by bundix): bin/asxpio is Puma serving
config.ru, bin/asxpio-monitor the reachability worker. Photos are
resized with ImageMagick 7's magick. nixosModules.default
(services.asxpio) runs both as hardened systemd services with a dynamic
user, the web one with readiness from Puma (Type=notify); settings and
secrets come from one environment file. CI checks that gemset.nix
matches Gemfile.lock (bin/check-gemset) and builds the package.

Checked locally: migrations on an empty database, /healthz and /, an
invoice PDF with the Noto fonts, a photo resized to WebP and cropped.

The container deploy stays until the NixOS service has taken over.

Assisted-by: Claude:opus-5-5
2026-11-17 14:01:16 +04:00
26fa3cc98a
ci: test against Postgres 18.7, as production runs
All checks were successful
Tests / test (push) Successful in 21s
Build and Deploy to Production / test (push) Successful in 21s
Build and Deploy to Production / build (push) Successful in 1m0s
Build and Deploy to Production / deploy (push) Successful in 39s
storage moved to Postgres 18.7 (2026-11-13); the CI database service
follows, so tests run on the server version that ships.

Assisted-by: Claude:opus-5-5
2026-11-13 04:36:04 +04:00
a3184628a3
Pin exact versions of images and actions
All checks were successful
Tests / test (push) Successful in 30s
Build and Deploy to Production / test (push) Successful in 21s
Build and Deploy to Production / build (push) Successful in 59s
Build and Deploy to Production / deploy (push) Successful in 39s
Floating tags (17-alpine, 3.4-slim, nginx:alpine, :latest, :debug, @v7)
change under a deploy without anyone deciding it: the storage deploy
moved Postgres to 17.12 on its own because of postgres:17-alpine. Pin
every image and action to its exact current version, so each change
arrives as a reviewed Renovate PR and a rollback is a revert.

Assisted-by: Claude:opus-5-5
2026-11-13 02:46:53 +04:00
02097e3af7
Merge Renovate: deps: Update actions/checkout action to v7 2026-11-13 02:09:23 +04:00
b6e48cb69c deps: Update actions/checkout action to v7
All checks were successful
Tests / test (push) Successful in 22s
2026-11-12 21:46:43 +00:00
280c961b25 deps: Update actions/cache action to v6
All checks were successful
Tests / test (push) Successful in 24s
2026-11-12 21:46:40 +00:00
642bec845a
ci: set nix options through NIX_CONFIG
Some checks failed
Build and Deploy to Production / test (push) Failing after 15s
Build and Deploy to Production / build (push) Has been skipped
Build and Deploy to Production / deploy (push) Has been skipped
The runner mounts a persistent nix-store volume over /nix. The current
nixos/nix image makes /etc/nix/nix.conf a symlink into /nix/store, and
the volume does not hold that path, so the link dangles and appending
to it fails before checkout: "/etc/nix/nix.conf: No such file or
directory".

Pass the settings in NIX_CONFIG instead. Without a config file Nix also
falls back to build-users-group = nixbld, which the container lacks, so
set it empty and turn the sandbox off, as the image config does.

Assisted-by: Claude:opus-5-5
2026-10-18 09:34:44 +04:00
15cff895af
ci: cache gems and persist nix store between runs 2026-07-02 18:39:37 +04:00
67263cb75c
ci: gate build on tests, deploy waits for container health
Some checks failed
Build and Deploy to Production / build (push) Blocked by required conditions
Build and Deploy to Production / deploy (push) Blocked by required conditions
Build and Deploy to Production / test (push) Failing after 11m37s
2026-07-02 18:32:53 +04:00
9485b6b72a
ci: drop git install — image ships git-minimal, full git conflicts
All checks were successful
Build and Deploy to Production / build (push) Successful in 1m2s
Tests / test (push) Successful in 1m1s
Build and Deploy to Production / deploy (push) Successful in 26s
2026-07-02 18:09:39 +04:00
5dbd1d4dc8
ci: use service hostname — runner networking fixed to per-workflow bridge
Some checks failed
Tests / test (push) Failing after 18s
Build and Deploy to Production / build (push) Successful in 51s
Build and Deploy to Production / deploy (push) Successful in 24s
2026-07-02 18:02:02 +04:00
6807d41aa4
ci: publish postgres service port — job containers use host network
Some checks failed
Tests / test (push) Failing after 1s
Build and Deploy to Production / build (push) Successful in 53s
Build and Deploy to Production / deploy (push) Successful in 25s
2026-07-02 17:57:25 +04:00
9ff394c75f
ci: run test suite on push
Some checks failed
Build and Deploy to Production / build (push) Successful in 1m0s
Build and Deploy to Production / deploy (push) Successful in 43s
Tests / test (push) Failing after 1s
2026-07-02 17:38:35 +04:00