Overwrite files when pulling stack
Some checks are pending
Stacks CICD / Setup (push) Waiting to run
Some checks are pending
Stacks CICD / Setup (push) Waiting to run
This commit is contained in:
parent
cc83cdecd3
commit
e45944c2d8
@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
# run me with
|
||||
# curl https://gitea.jafner.tools/Jafner/Jafner.net/raw/branch/main/homelab/stacks/deploy.sh | bash
|
||||
# curl https://gitea.jafner.tools/Jafner/Jafner.net/raw/branch/main/homelab/stacks/deploy.sh | bash -s <stack to pass>
|
||||
|
||||
STACK=$1
|
||||
mkdir -p /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
|
||||
mv homelab/stacks/$STACK $HOME/stacks/
|
||||
mv -f homelab/stacks/$STACK $HOME/stacks/
|
||||
cd $HOME/stacks/$STACK && rm -rf /tmp/stack/$STACK
|
||||
|
||||
echo -e "$(cat $HOME/.age/$HOSTNAME.host.key)\n$AGE_DEPLOY_KEY" > $HOME/.age/combined.key
|
||||
|
Loading…
Reference in New Issue
Block a user