feat: auto-create static-sites namespace on deploy

This commit is contained in:
Christopher Mühl 2026-02-18 13:19:44 +01:00
parent 52015863a8
commit af9a4e3e29
No known key found for this signature in database
GPG key ID: 925AC7D69955293F
2 changed files with 2 additions and 1 deletions

View file

@ -38,9 +38,9 @@ Builds a Nix flake site, uploads a tarball to S3, and deploys it via Nomad using
## Infrastructure Requirements
- Nomad namespace `static-sites` must exist
- `registry.toph.so/static-server:latest` must be pushed (see `images/flake.nix` and the `build-static-server` workflow)
- S3 bucket (`nix-cache` by default) must exist and be writable with the supplied credentials
- Nomad namespace `static-sites` is created automatically on first deploy
## Site Flake Requirements

View file

@ -80,6 +80,7 @@ runs:
- name: Deploy Nomad job
shell: bash
run: |
nomad namespace apply static-sites
nix eval --raw --impure \
--expr "import ${{ github.action_path }}/nomad-job.nix" \
| nomad job run -json -