wire automatic docs rebuild: mount host data in CI, add post-commit hook
This commit is contained in:
@@ -131,12 +131,17 @@ steps:
|
||||
- path: "zotero/**"
|
||||
|
||||
# ── 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
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /run/user/1000/docker.sock:/var/run/docker.sock
|
||||
- /home/kert/stack/data:/host-data:ro
|
||||
commands:
|
||||
- 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 tag fhirworx/docs:$TAG fhirworx/docs:latest
|
||||
|
||||
|
||||
@@ -24,8 +24,11 @@ steps:
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /run/user/1000/docker.sock:/var/run/docker.sock
|
||||
- /home/kert/stack/data:/host-data:ro
|
||||
commands:
|
||||
- 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 tag fhirworx/docs:$TAG fhirworx/docs:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user