ci-actions/.forgejo/workflows/build-static-server.yaml
Christopher Mühl e3df182616
Some checks failed
Build and Push static-server Image / build (push) Failing after 17s
ci: also trigger on workflow file changes
2026-02-18 13:31:04 +01:00

28 lines
787 B
YAML

name: Build and Push static-server Image
on:
push:
branches: [main]
paths:
- 'deploy-static-site/images/flake.nix'
- 'deploy-static-site/images/flake.lock'
- '.forgejo/workflows/build-static-server.yaml'
workflow_dispatch:
jobs:
build:
runs-on: nix
steps:
- uses: actions/checkout@v4
- name: Run smoke check
run: nix build ./deploy-static-site/images#checks.x86_64-linux.smoke
- name: Build static-server image
run: nix build ./deploy-static-site/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