misc(docs): moving to a selfhosted docker container instead of readthedocs
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 3s
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 3s
This commit is contained in:
parent
e4ddee9daa
commit
4a790d90d8
3 changed files with 54 additions and 23 deletions
33
.forgejo/workflows/build-docs.yml
Normal file
33
.forgejo/workflows/build-docs.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
|
||||
name: Build Documentation
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: docker
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.COASTALCOMMITSTOKEN }}
|
||||
- name: Login to CoastalCommits
|
||||
uses: actions/docker-login@v3
|
||||
with:
|
||||
registry: coastalcommits.com
|
||||
username: SeaswimmerTheFsh
|
||||
password: ${{ secrets.COASTALCOMMITSTOKEN }}
|
||||
- name: Build and push Docker image
|
||||
uses: actions/docker-build-push@v5
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
tags: coastalcommits.com/seaswimmerthefsh/seacogs-docs:latest
|
||||
- name: Update Portainer stack
|
||||
uses: actions/http@master
|
||||
with:
|
||||
url: ${{ secrets.PORTAINER_WEBHOOK }}
|
|
@ -1,23 +0,0 @@
|
|||
version: 2
|
||||
|
||||
build:
|
||||
os: "ubuntu-22.04"
|
||||
apt_packages:
|
||||
- libcairo2-dev
|
||||
- libfreetype6-dev
|
||||
- libffi-dev
|
||||
- libjpeg-dev
|
||||
- libpng-dev
|
||||
- libz-dev
|
||||
- pngquant
|
||||
tools:
|
||||
python: "3.11"
|
||||
jobs:
|
||||
post_create_environment:
|
||||
- pip install poetry
|
||||
- poetry config virtualenvs.create false
|
||||
post_install:
|
||||
- poetry install --with docs
|
||||
|
||||
mkdocs:
|
||||
configuration: mkdocs.yml
|
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
from python:3.11
|
||||
RUN pip install --upgrade pip poetry
|
||||
COPY pyproject.toml poetry.lock /
|
||||
|
||||
RUN apt install -y /
|
||||
libcairo2-dev /
|
||||
libfreetype6-dev /
|
||||
libjpeg-dev /
|
||||
libffi-dev /
|
||||
libpng-dev /
|
||||
libz-dev /
|
||||
pngquant
|
||||
RUN poetry config virtualenvs.create false
|
||||
RUN poetry install -n --with docs
|
||||
|
||||
COPY .docs /.docs
|
||||
COPY mkdocs.yml /
|
||||
|
||||
WORKDIR /.docs
|
||||
EXPOSE 8000
|
||||
CMD ["mkdocs", "serve", "--dev-addr=0.0.0.0:8000"]
|
Loading…
Reference in a new issue