Files
portfolio-photo/.gitlab-ci.yml
T
Leon TonhäuserandClaude 72b08acefb fix: pages auf Standard-Artifact-Flow zurück (rsync-Workaround raus)
Serverseitiges Artifact-Limit wurde angehoben (Option A), damit der
Standard GitLab-Pages-Flow mit LFS-Bildern im Artifact wieder funktioniert
(wie Pipeline 59, letzte grüne). Der rsync-Workaround + Artifact-Exclude-
Tanz war ein Workaround auf den 413-Fehler und kämpft gegen GitLabs
pages:deploy-Modell (Pipeline rot trotz grünem Job). Zurück auf die
einfache Form: git lfs pull + artifacts: paths: [public].

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-25 00:25:55 +02:00

25 lines
845 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# GitLab Pages: veröffentlicht den Ordner public/ bei jedem Push auf main.
# Der Framer-Export ist fertig gebaut – es gibt keinen Build-Schritt.
#
# Der Runner ist ein Shell-Executor (läuft direkt auf dem Server, kein Docker).
# Voraussetzung auf dem Server: git-lfs (einmalig: sudo apt-get install -y git-lfs)
pages:
stage: deploy
script:
# Bilder liegen in Git LFS – ohne diesen Schritt landen nur 129-Byte-
# Zeigerdateien statt der echten Bilder auf der veröffentlichten Seite.
- |
if ! command -v git-lfs >/dev/null; then
echo "FEHLER - git-lfs fehlt auf dem Server."
echo "Einmalig installieren mit 'sudo apt-get install -y git-lfs'"
exit 1
fi
- git lfs install --local
- git lfs pull
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == "main"