fix(ingress.tjo.cloud): use sparse checkout
Some checks are pending
/ lint (push) Waiting to run

This commit is contained in:
Tine 2024-12-23 19:17:05 +01:00
parent ea7e1038d2
commit 4240992f4d
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -7,10 +7,18 @@ echo "== Fetch Source Code (from git)"
cd /srv
# Clone if not yet cloned
if [ ! -d .git ]; then
git clone --depth 1 https://code.tjo.space/tjo-cloud/ingress.git .
git clone \
--depth 1 \
--no-checkout \
--filter=tree:0 \
https://code.tjo.space/tjo-cloud/infrastructure.git .
git sparse-checkout set --no-cone /ingress.tjo.cloud
git checkout
else
git pull
git pull --depth=1
fi
# Enter ingress directory
cd /srv/ingress.tjo.cloud
##
echo "== Configure Metadata"