Commit graph datacenterbingo/.forgejo/workflows/test.yaml
Author SHA1 Message Date
368ef60836
Drop the container pipeline: the servers run the flake
asxpio-services runs the app from this flake (services.datacenterbingo)
and the container is 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. Settings and
secrets now live in iac, so the deploy and registry secrets here are
unused. Also drops b/asxpio-invoices/bingo/evil.jpg, a stray file nothing
references.

Assisted-by: Claude:opus-5-5
2026-11-17 13:56:37 +04:00
adc6e824e5
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 11m36s
Build and Deploy to Production / build (push) Successful in 49s
Build and Deploy to Production / deploy (push) Successful in 1m6s
packages.default is the app with its gems (bundlerEnv from Gemfile.lock
and gemset.nix, generated by bundix); bin/datacenterbingo is Puma serving
config.ru. nixosModules.default (services.datacenterbingo) runs it as a
hardened systemd service with a dynamic user, readiness from Puma
(Type=notify), settings in environment and secrets from a file. CI
checks that gemset.nix matches Gemfile.lock (bin/check-gemset) and
builds the package.

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

Assisted-by: Claude:opus-5-5
2026-11-17 13:38:19 +04:00
0536af5a7f
ci: test against Postgres 18.7, as production runs
All checks were successful
Tests / test (push) Successful in 16s
Build and Deploy to Production / test (push) Successful in 14s
Build and Deploy to Production / build (push) Successful in 49s
Build and Deploy to Production / deploy (push) Successful in 36s
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:33:25 +04:00
b3ca46fc51
Pin exact versions of images and actions
All checks were successful
Tests / test (push) Successful in 14s
Build and Deploy to Production / test (push) Successful in 14s
Build and Deploy to Production / build (push) Successful in 50s
Build and Deploy to Production / deploy (push) Successful in 35s
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
240972571f
Merge Renovate: deps: Update actions/checkout action to v7 2026-11-13 02:13:15 +04:00
c267dec2a7 deps: Update actions/checkout action to v7
All checks were successful
Tests / test (push) Successful in 13s
2026-11-12 21:47:42 +00:00
026f36730e deps: Update actions/cache action to v6
All checks were successful
Tests / test (push) Successful in 13s
2026-11-12 21:47:41 +00:00
caaccfc3a4
Set nix options through NIX_CONFIG in CI
Some checks failed
Build and Deploy to Production / test (push) Failing after 11s
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:38 +04:00
062611fa21
Initial import of the public datacenter bingo site
Some checks failed
Build and Deploy to Production / test (push) Failing after 21s
Build and Deploy to Production / build (push) Has been skipped
Build and Deploy to Production / deploy (push) Has been skipped
The bingo card ran inside the asxpio container, dispatched by Host.
Give the public site its own repo, image and deploy so it can be
released and mirrored independently of asxp.io.

Editing stays in the asxp.io admin, which keeps owning the schema and
the photo pipeline; this app only reads the shared bingo tables and the
bingo/ photos, through a read-only DB role and MinIO user. Tests load a
snapshot of the asxpio-built schema (test/schema.sql).

Assisted-by: Claude:opus-5
2026-10-12 03:48:06 +04:00