ci-actions/images/.forgejo/workflows/build-images.yaml
Christopher Mühl 55652569b2
feat: add deploy-static-site action, site-lib, images; remove deploy-oci-site
Content now served from S3 at runtime via shared static-server image.
- deploy-static-site: reads creds from Nomad vars, builds site, pushes
  tarball to S3, generates per-domain Nomad job JSON, deploys
- generate-job.py: emits Nomad job JSON for a static site deployment
- site-lib/flake.nix: mkSite helper, packages.default + devShells only
- images/flake.nix: shared static-server OCI image (sws + awscli2 + tools)
- images CI: builds and pushes static-server on images/flake.nix changes
- deploy-oci-site: removed (superseded by deploy-static-site)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-18 11:27:27 +01:00

23 lines
541 B
YAML

name: Build and Push Images
on:
push:
branches: [main]
paths:
- 'images/flake.nix'
workflow_dispatch:
jobs:
build-static-server:
runs-on: nix
steps:
- uses: actions/checkout@v4
- name: Build static-server image
run: nix build ./images#staticServer --out-link result-static-server
- name: Push to registry
run: |
nix shell nixpkgs#skopeo -c skopeo copy \
docker-archive:./result-static-server \
docker://registry.toph.so/static-server:latest