A PERSONAL PLATFORM, DOCUMENTED IN PUBLIC

Every side project,
shipped the same way.

I build a lot of side projects, and I was tired of deciding how to deploy each one. Blueprint is where I made those decisions once: one Google Cloud project, one Postgres instance, one release process.

Owner
Lucas Scariot
Code
Private
This site
Public showcase

My own system, not a product. About this site

+ FIG. 01 · THE PLATFORMSELECT A PART
merge the release PRbuild · push · applyhostnameDATABASE_URLenv varsProject listone entry per project01Project repoapps/*/Dockerfile02CI runnerone per project, on a Mac03Cloud Runstateless containers, zero at idle04DNSCloudflare, proxy off05PostgreSQLone shared instance06Secret Managerproduction values07

PART 01 OF 07

Project list

A project starts as one entry in a list kept in the platform repository. Applying it creates the project's private repository from a template, with its deploy identities, image registry, state bucket and CI runner.

Entry
name + description
Database
opt-in
Applied
by hand
Handbook: Create a project

PART 02 OF 07

Project repo

Each project keeps its code in its own repository. Every apps/<name>/Dockerfile is a deployable service, so one project can mix languages. Its workflow files only call the platform's.

Listen on
$PORT
Health
/health
State on disk
none
Handbook: The application contract

PART 03 OF 07

CI runner

GitHub Actions jobs run on a Mac Studio of mine, in three runner containers per project. Merging the release PR builds every image, pushes it, and applies the project's infrastructure with the new digests.

Runners
1 per project
Images
x86-64
Fallback
none
Handbook: CI runners

PART 04 OF 07

Cloud Run

Where the apps run: stateless HTTP containers that scale to zero when nobody is using them, which is what keeps an idle project close to free. Every folder in apps/ becomes one service.

CPU
1
Memory
512 MiB
Instances
0 to 2
Handbook: Defaults and limits

PART 05 OF 07

DNS

Cloudflare holds the records, with its proxy off. A hostname declared in the project list gets a DNS record and a Cloud Run domain mapping, and Google issues the certificate.

Default
a subdomain
Certificate
Google-issued
Ready in
≈ 15 min
Handbook: Connect a domain

PART 06 OF 07

PostgreSQL

One shared instance on the smallest tier, whatever the number of projects. A project that opts in gets its own database and role, handed to its apps as DATABASE_URL.

Version
PostgreSQL 17
Connections
25, shared
Cost
≈ €8 a month
Handbook: Keep database pools small

PART 07 OF 07

Secret Manager

The source of truth for production values. A gitignored file in each project is the working copy, and every key in it reaches the project's apps as an environment variable.

Working copy
.env.production
Sync
bin/secrets push
Takes effect
next release
Handbook: Push production secrets

01 / WHAT A PROJECT GETS

The same foundations,
every time.

A new project starts with all of this in place,
so the only new thing is the project.

02 / THE PATH TO PRODUCTION

From a name
to a live app.

Three steps, identical for every project. These are the real files, shown with a made-up project called notebook.

The release flow, step by step
blueprint / infra / projects.auto.tfvars
projects = {
  notebook = {
    description = "A place for small ideas"
    database    = true
  }
}

01 Add an entry, review the plan, apply it. The repository appears.

03 / DECISIONS

What I chose,
and what I turned down.

The point was to stop deciding. These were settled once,
so that no project has to settle them again.

WHAT THAT COSTS IN RETURN

Defaults and limits

25 database connections

One small Postgres instance serves every project, with no SLA. Apps keep pools of one or two connections.

One build machine

Jobs wait while the Mac is off or asleep. There is no fallback to GitHub's own runners.

Preview-grade domains

Custom hostnames rely on Cloud Run domain mappings, a Preview feature Google does not recommend for production.

One trusted owner

Projects are separated by convention more than by walls. Right for my own code, wrong for tenants.

05 / ABOUT THIS SITE

Public site.
Private code.

Blueprint is my personal system, not a product. Its repository is private and I am the only one with access, so there is nothing here to install, clone or sign up for.

This site is the showcase: how the platform works, the decisions behind it, and the handbook I run it with. If you are building something similar, take whatever is useful.

RUNNING ON IT2 PROJECTS

  • hello

    This site. It began as the demo that proved the platform end to end, and it still releases through it.

    hello.scariot.frrevision hello-web-00006-tv9

  • cockpit

    A dashboard for my pull requests, CI runs and runners.

    sign-in only