Skip to content

Commit

Permalink
Change build
Browse files Browse the repository at this point in the history
  • Loading branch information
quietsy committed Feb 11, 2025
1 parent 2010057 commit 2f22ca4
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CUSTOM_DOMAIN: virtualize.link
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
REQUIREMENTS: requirements.txt
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build documentation
run: mkdocs build
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/baseimage-alpine:edge

RUN \
echo "**** install packages ****" && \
apk add --no-cache \
git \
python3 && \
mkdir -p /app/mkdocs/docs && \
git config --global --add safe.directory /app/mkdocs && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \
wheel

COPY requirements.txt /app/mkdocs/requirements.txt

RUN \
pip install -U --no-cache-dir \
-r /app/mkdocs/requirements.txt

COPY . /app/mkdocs/

WORKDIR /app/mkdocs

ENTRYPOINT ["catatonit", "--", "mkdocs", "serve"]

CMD [ "-a", "0.0.0.0:8000" ]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mkdocs-git-revision-date-localized-plugin
mkdocs-material
mdx_truly_sane_lists

0 comments on commit 2f22ca4

Please sign in to comment.