wire automatic docs rebuild: mount host data in CI, add post-commit hook

This commit is contained in:
kert
2026-03-01 00:35:59 -05:00
parent 53a101026b
commit bf19c918df
2 changed files with 8 additions and 0 deletions

View File

@@ -131,12 +131,17 @@ steps:
- path: "zotero/**" - path: "zotero/**"
# ── Docs image ───────────────────────────────────────────── # ── Docs image ─────────────────────────────────────────────
# No path filter — docstrings and bib data change with any src/ edit.
# Host data dir is mounted so bib.sqlite is available for library export.
- name: build-docs - name: build-docs
image: docker:cli image: docker:cli
volumes: volumes:
- /run/user/1000/docker.sock:/var/run/docker.sock - /run/user/1000/docker.sock:/var/run/docker.sock
- /home/kert/stack/data:/host-data:ro
commands: commands:
- TAG=${CI_COMMIT_SHA:0:8} - TAG=${CI_COMMIT_SHA:0:8}
- mkdir -p data
- cp /host-data/bib.sqlite data/ 2>/dev/null || true
- docker build -t fhirworx/docs:$TAG -f docs/Dockerfile . - docker build -t fhirworx/docs:$TAG -f docs/Dockerfile .
- docker tag fhirworx/docs:$TAG fhirworx/docs:latest - docker tag fhirworx/docs:$TAG fhirworx/docs:latest

View File

@@ -24,8 +24,11 @@ steps:
image: docker:cli image: docker:cli
volumes: volumes:
- /run/user/1000/docker.sock:/var/run/docker.sock - /run/user/1000/docker.sock:/var/run/docker.sock
- /home/kert/stack/data:/host-data:ro
commands: commands:
- TAG=${CI_COMMIT_SHA:0:8} - TAG=${CI_COMMIT_SHA:0:8}
- mkdir -p data
- cp /host-data/bib.sqlite data/ 2>/dev/null || true
- docker build -t fhirworx/docs:$TAG -f docs/Dockerfile . - docker build -t fhirworx/docs:$TAG -f docs/Dockerfile .
- docker tag fhirworx/docs:$TAG fhirworx/docs:latest - docker tag fhirworx/docs:$TAG fhirworx/docs:latest