dms #1

Merged
jay merged 56 commits from dms into main 2026-03-24 20:14:09 +00:00
Showing only changes of commit 4ba1f4be21 - Show all commits

View File

@@ -8,13 +8,31 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: node:20-bookworm image: node:20-bookworm # Node for checkout
steps: steps:
# 1⃣ Checkout repository # 1⃣ Checkout repository
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# 2⃣ Install Docker CLI in container # 2⃣ Install Python for MkDocs build
- name: Install Python
run: |
apt-get update
apt-get install -y python3 python3-venv python3-pip
# 3⃣ List repo files (debug)
- name: List repo files
run: ls -R "${{ github.workspace }}"
# 4⃣ Build MkDocs site locally
- name: Build MkDocs site
run: |
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -r ci/mkdocs/requirements.txt
.venv/bin/mkdocs build --clean --site-dir site_output
# 5⃣ Install Docker CLI so we can copy to volume
- name: Install Docker CLI - name: Install Docker CLI
run: | run: |
apt-get update apt-get update
@@ -29,18 +47,15 @@ jobs:
apt-get update apt-get update
apt-get install -y docker-ce-cli apt-get install -y docker-ce-cli
- name: List repo files # 6⃣ Copy the site output into notes_public Docker volume
run: ls -R "${{ github.workspace }}" - name: Copy site to notes_public volume
# 3⃣ Build MkDocs into Docker volume
- name: Build MkDocs into notes_public volume
run: | run: |
docker run --rm \ docker run --rm \
-v notes_public:/public \ -v notes_public:/public \
-v "${{ github.workspace }}:/work" \ -v "${{ github.workspace }}/site_output:/tmp/site" \
-w /work \ alpine sh -c "cp -r /tmp/site/* /public/"
python:3.13-slim \
sh -c "python3 -m venv .venv && \ # 7⃣ Optional: Verify files in volume
.venv/bin/pip install --upgrade pip && \ - name: List notes_public volume
.venv/bin/pip install -r ci/mkdocs/requirements.txt && \ run: |
.venv/bin/mkdocs build --clean --site-dir /public" docker run --rm -v notes_public:/data alpine ls -la /data