diff --git a/builder/Dockerfile b/builder/Dockerfile new file mode 100644 index 0000000..2822fe6 --- /dev/null +++ b/builder/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.13-slim-bookworm + +RUN \ + apt update && \ + apt install -y --no-install-recommends \ + ca-certificates \ + git \ + libcairo2 && \ + pip install \ + mkdocs \ + mkdocs-material \ + mkdocs-material[imaging] + +COPY build.sh /build.sh + +ENTRYPOINT [ "/build.sh" ] \ No newline at end of file diff --git a/builder/build.sh b/builder/build.sh new file mode 100755 index 0000000..8e11f35 --- /dev/null +++ b/builder/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +git clone "${REPO:-'https://git.tek.govt.hu/dowerx/www.git'}" /src + +cd /src + +mkdocs build --site-dir "${SITE_DIR:-'/site'}" diff --git a/builder/build.yml b/builder/build.yml new file mode 100644 index 0000000..9f4d5e9 --- /dev/null +++ b/builder/build.yml @@ -0,0 +1,30 @@ +registries: + - registry.tek.govt.hu +repos: + - name: www + library: dowerx + path: . + tags: + - name: latest + tags: + - amd64 + - arm64 + - armv7 + - name: "${DATE}" + tags: + - "${DATE}-amd64" + - "${DATE}-arm64" + - "${DATE}-armv7" + builds: + - arch: amd64 + tags: + - amd64 + - "${DATE}-amd64" + - arch: arm64 + tags: + - arm64 + - "${DATE}-arm64" + - arch: armv7 + tags: + - armv7 + - "${DATE}-armv7" \ No newline at end of file