All checks were successful
Build and Publish Docker Image / docker (push) Successful in 36s
33 lines
708 B
Markdown
33 lines
708 B
Markdown
# Overview
|
|
|
|
Alpine based image to build jupyter-book based documentation
|
|
|
|
Build manually:
|
|
```bash
|
|
docker run -it --rm -v $(pwd):/data --workdir /data gitea.psi.ch/images/alpine-zensical
|
|
|
|
/opt/python-env/bin/zensical build --site-dir public
|
|
```
|
|
|
|
Use Gitea action to build the documentation:
|
|
|
|
```yaml
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest-intranet
|
|
container:
|
|
image: gitea.psi.ch/images/alpine-zensical
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Jupyter Book
|
|
run: /opt/python-env/bin/zensical build --site-dir public
|
|
|
|
```
|
|
|
|
|
|
```bash
|
|
docker build --platform linux/x86_64 -t gitea.psi.ch/images/alpine-zensical:latest .
|
|
```
|