Files
portfolio-photo/.gitlab-ci.yml
T

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"