From c65c2c083497cf668865e840e31cfab5e5f46f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BENEDEK=20L=C3=A1szl=C3=B3?= Date: Sat, 7 Dec 2024 02:06:33 +0100 Subject: [PATCH] builder --- builder/Dockerfile | 16 ++++++++++++++++ builder/build.sh | 9 +++++++++ builder/build.yml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 builder/Dockerfile create mode 100755 builder/build.sh create mode 100644 builder/build.yml 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