feat: auto-create static-sites namespace on deploy
This commit is contained in:
parent
52015863a8
commit
af9a4e3e29
2 changed files with 2 additions and 1 deletions
|
|
@ -38,9 +38,9 @@ Builds a Nix flake site, uploads a tarball to S3, and deploys it via Nomad using
|
||||||
|
|
||||||
## Infrastructure Requirements
|
## 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)
|
- `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
|
- 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
|
## Site Flake Requirements
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ runs:
|
||||||
- name: Deploy Nomad job
|
- name: Deploy Nomad job
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
nomad namespace apply static-sites
|
||||||
nix eval --raw --impure \
|
nix eval --raw --impure \
|
||||||
--expr "import ${{ github.action_path }}/nomad-job.nix" \
|
--expr "import ${{ github.action_path }}/nomad-job.nix" \
|
||||||
| nomad job run -json -
|
| nomad job run -json -
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue