Browse Source

Update to mkdocs-material 7 and improve build process

keep-around/2ac6724fe6bbbd73f0ec4fb67826cbefac659223
Johannes Zellner 4 months ago
parent
commit
2ac6724fe6
  1. 2
      .gitlab-ci.yml
  2. 11
      Dockerfile
  3. 19
      update.sh

2
.gitlab-ci.yml

@ -4,7 +4,7 @@
# cache is preserved between pipelines (and not meant for jobs)
default:
image: cloudron/docs-ci@sha256:a3d007645bf0885235bb56bad69abb3e91456db38d526a822957bd846dc13d64
image: cloudron/docs-ci@sha256:4a63ad48a6fbbd168828769b0d796b511d09d173ab5dd64368338997164aa4ab
variables:
DOCS_SERVER: docs.cloudron.io

11
Dockerfile

@ -1,8 +1,11 @@
FROM cloudron/base:3.0.0:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
# passed from ./update.sh
ARG MKDOCS_MATERIAL_VERSION
ARG SURFER_VERSION
RUN apt-get update && \
apt install python3-setuptools && \
pip3 install mkdocs-material==6.0.1 && \
pip3 install mkdocs-material==$MKDOCS_MATERIAL_VERSION && \
npm i -g redoc-cli && \
npm install -g cloudron-surfer@5.13.5-1
npm install -g cloudron-surfer@$SURFER_VERSION

19
update.sh

@ -2,21 +2,20 @@
set -eu
export MKDOCS_MATERIAL_VERSION="7.0.0"
export SURFER_VERSION="5.13.5-1"
echo "=> Installing mkdocs-material"
sudo pip3 install mkdocs-material==6.0.1
sudo pip3 install mkdocs-material==${MKDOCS_MATERIAL_VERSION}
echo "=> Installing redoc-cli if needed"
if ! type redoc-cli &> /dev/null; then
npm i -g redoc-cli
fi
echo "=> Installing redoc-cli"
npm install -g redoc-cli
echo "=> Installing surfer-cli if needed"
if ! type surfer &> /dev/null; then
npm install -g cloudron-surfer
fi
echo "=> Installing surfer"
npm install -g cloudron-surfer@${SURFER_VERSION}
echo "=> Updating Docker Image"
docker build . -t cloudron/docs-ci
docker build . -t cloudron/docs-ci --build-arg MKDOCS_MATERIAL_VERSION=$MKDOCS_MATERIAL_VERSION --build-arg SURFER_VERSION=$SURFER_VERSION
docker push cloudron/docs-ci
echo ""

Loading…
Cancel
Save