From fe427137fd3168e9b557b0259eea6cd95590c4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sat, 24 Jan 2026 16:34:44 +0000 Subject: [PATCH] chore script "publish" --- Dockerfile => chores/.publish/Dockerfile | 6 +++--- chores/publish | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) rename Dockerfile => chores/.publish/Dockerfile (78%) create mode 100755 chores/publish diff --git a/Dockerfile b/chores/.publish/Dockerfile similarity index 78% rename from Dockerfile rename to chores/.publish/Dockerfile index 1a2a8f5..c8ed9be 100644 --- a/Dockerfile +++ b/chores/.publish/Dockerfile @@ -3,18 +3,18 @@ FROM docker.io/ldericher/autodoc:diagram # install TeXoffice COPY --chown=root:root \ deploy/texoffice \ - /opt/texlive/texdir/texmf-dist/tex/latex/texoffice + /opt/texlive/texdir/texmf-dist/tex/latex/texoffice/ # install lenaisten directory COPY --chown=root:root \ src/lenaisten \ - /opt/lenaisten + /opt/lenaisten/ # install pandoc templates COPY --chown=root:root \ src/lev-protokoll.latex \ src/lev-dokument.latex \ - /usr/local/share/pandoc/templates + /usr/local/share/pandoc/templates/ RUN set -ex; \ # reindex TeXlive (installed TeXoffice) diff --git a/chores/publish b/chores/publish new file mode 100755 index 0000000..9b7ff79 --- /dev/null +++ b/chores/publish @@ -0,0 +1,12 @@ +#!/bin/sh + +script="$( readlink -f "${0}" )" +script_dir="$( dirname "${script}" )" +repo_dir="$( readlink -f "${script_dir}/.." )" + +docker buildx build \ + --pull --push \ + --file "${script_dir}/.publish/Dockerfile" \ + --tag "code.lenaisten.de/lenaisten/lev-templates:latest" \ + --platform "linux/amd64" \ + "${repo_dir}"