This commit is contained in:
BENEDEK László 2024-12-07 02:06:33 +01:00
parent c58c18837a
commit c65c2c0834
3 changed files with 55 additions and 0 deletions

16
builder/Dockerfile Normal file
View File

@ -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" ]

9
builder/build.sh Executable file
View File

@ -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'}"

30
builder/build.yml Normal file
View File

@ -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"