Files
Dune/.github/workflows/container.yml
Quintine 903c7731e2 Package verified Dune checkpoints for TrueNAS and HTTPS proxying
Serve built Workers directly through pinned Miniflare with persistent D1-compatible storage and startup migrations. Build and verify Docker images in CI; publish main checkpoints to GHCR for manual TrueNAS updates on port 33046. Preserve explicit public-origin checks and LAN-compatible cryptographic operation IDs.

Validation: 5,153 offline tests, typecheck, lint and build; 49 HTTP integration cases; HTTPS-origin create/join/chat/seat protection, foreign-origin rejection, exact saved-seat restart and browser asset serving. Independent persistence/proxy review completed. Clean Docker CI and actual NAS installation follow this source checkpoint.
2026-09-21 17:37:50 +10:00

55 lines
1.5 KiB
YAML

name: Verify and publish checkpoint container
on:
push:
branches: [main, 'codex/**']
workflow_dispatch:
permissions:
contents: read
packages: write
concurrency:
group: dune-checkpoint-container
cancel-in-progress: false
jobs:
container:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- run: npm ci
- uses: docker/setup-buildx-action@v3
- name: Build and run offline checks
uses: docker/build-push-action@v6
with:
context: .
load: true
tags: dune:verify
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Verify isolated storage and HTTP behavior
run: node tools/verify-container.mjs dune:verify
- uses: docker/login-action@v3
if: github.ref == 'refs/heads/main'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish the verified image
if: github.ref == 'refs/heads/main'
env:
REPOSITORY: ${{ github.repository }}
REVISION: ${{ github.sha }}
run: |
image="ghcr.io/${REPOSITORY,,}"
docker tag dune:verify "$image:sha-$REVISION"
docker tag dune:verify "$image:checkpoint"
docker push "$image:sha-$REVISION"
docker push "$image:checkpoint"