Commit graph datacenterbingo/.forgejo
Author SHA1 Message Date
5a3ce2a0ba
CI: run on main too
All checks were successful
CI / test (push) Successful in 9m54s
deploy.yaml, which tested main, is gone.

Assisted-by: Claude:opus-5-5
2026-11-17 13:56:53 +04:00
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
7ad847b29a
Merge Renovate: deps: Update CI actions
# Conflicts:
#	.forgejo/workflows/deploy.yaml
2026-11-13 02:13:33 +04:00
240972571f
Merge Renovate: deps: Update actions/checkout action to v7 2026-11-13 02:13:15 +04:00
f10b90b29d
Merge Renovate: deps: Update actions/cache action to v6 2026-11-13 02:13:15 +04:00
fe40b186f7 deps: Update easingthemes/ssh-deploy action to v6
All checks were successful
Tests / test (push) Successful in 14s
2026-11-12 21:47:55 +00: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
efa8690a6d deps: Update CI actions
All checks were successful
Tests / test (push) Successful in 14s
2026-11-12 21:47:15 +00:00
490bb3748c
docs: object storage is Garage now
All checks were successful
Build and Deploy to Production / test (push) Successful in 16s
Build and Deploy to Production / build (push) Successful in 49s
Build and Deploy to Production / deploy (push) Successful in 37s
The notes and comments still spoke of a MinIO user and of asxpio's
bucket. The photos are in datacenterbingo-photos on Garage, read with a
read-only S3 key.

Assisted-by: Claude:fable-5-2
2026-11-11 04:28:35 +04:00
475be2ece6
deploy: use Garage for object storage
All checks were successful
Build and Deploy to Production / test (push) Successful in 1m46s
Build and Deploy to Production / build (push) Successful in 1m5s
Build and Deploy to Production / deploy (push) Successful in 42s
The storage stack replaces MinIO, abandoned upstream, with Garage. Point
the app at garage:3900.

Garage only accepts keys in its own format, so hash the existing
BINGO_S3_* secrets into it the way storage's bootstrap does. The secrets
stay as they are; a pair already in Garage's format is used unchanged.

Assisted-by: Claude:fable-5-2
2026-11-11 03:44:42 +04: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
9c8606fbac
Read photos from the datacenterbingo-photos bucket
All checks were successful
Build and Deploy to Production / test (push) Successful in 17s
Build and Deploy to Production / build (push) Successful in 50s
Build and Deploy to Production / deploy (push) Successful in 36s
The photos moved out of asxpio's invoice bucket into their own (storage
repo); keys are unchanged.

Assisted-by: Claude:opus-5
2026-10-12 04:09:01 +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