Create stacks folder
Some checks are pending
Stacks CICD / Setup (push) Waiting to run

This commit is contained in:
Joey Hafner 2024-09-02 13:30:25 -07:00
parent 03bbcd5538
commit a5011edbe2
No known key found for this signature in database

View File

@ -3,7 +3,7 @@
# curl https://gitea.jafner.tools/Jafner/Jafner.net/raw/branch/main/homelab/stacks/deploy.sh | bash -s <stack to pass> # curl https://gitea.jafner.tools/Jafner/Jafner.net/raw/branch/main/homelab/stacks/deploy.sh | bash -s <stack to pass>
STACK=$1 STACK=$1
mkdir -p /tmp/stack/$STACK mkdir -p /tmp/stack/$STACK $HOME/stacks/$STACK
git clone -n --depth=1 --filter=tree:0 https://gitea.jafner.tools/Jafner/Jafner.net.git /tmp/stack/$STACK && cd /tmp/stack/$STACK git clone -n --depth=1 --filter=tree:0 https://gitea.jafner.tools/Jafner/Jafner.net.git /tmp/stack/$STACK && cd /tmp/stack/$STACK
git sparse-checkout set --no-cone homelab/stacks/$STACK && git checkout git sparse-checkout set --no-cone homelab/stacks/$STACK && git checkout
mv -f homelab/stacks/$STACK/* $HOME/stacks/$STACK/ mv -f homelab/stacks/$STACK/* $HOME/stacks/$STACK/