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/**"
|
- 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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user