builder
This commit is contained in:
parent
c58c18837a
commit
c65c2c0834
16
builder/Dockerfile
Normal file
16
builder/Dockerfile
Normal 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
9
builder/build.sh
Executable 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
30
builder/build.yml
Normal 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"
|
Loading…
Reference in New Issue
Block a user