Compare commits
No commits in common. "ada83e01b5cada967412ab571103de53d9d655a4" and "52015863a89a2eb70eb456e462ce523b4f6a095e" have entirely different histories.
ada83e01b5
...
52015863a8
2 changed files with 2 additions and 10 deletions
|
|
@ -38,16 +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
|
||||
|
||||
## Cold-Start (maintainer note)
|
||||
|
||||
The `static-server` image (`registry.toph.so/static-server:latest`) is built and pushed by
|
||||
the `build-static-server` workflow in this repo. It runs automatically when `deploy-static-site/images/flake.nix`
|
||||
changes, or can be triggered manually via `workflow_dispatch`.
|
||||
|
||||
On a fresh infrastructure setup, run that workflow once before deploying any site.
|
||||
|
||||
## Site Flake Requirements
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ 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 -
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue