Run deploy from persistent Debian checkout
This commit is contained in:
parent
08b8c2872b
commit
e661c0b4c8
|
|
@ -76,5 +76,14 @@ jobs:
|
|||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
./lab.sh up
|
||||
deploy_dir="${HOMELAB_DEPLOY_DIR:-/home/jv/my-homelab-configs}"
|
||||
test -d "${deploy_dir}/.git"
|
||||
|
||||
git -C "${deploy_dir}" remote set-url gitea https://lab2025.duckdns.org/git/jv/my-homelab-configs.git || \
|
||||
git -C "${deploy_dir}" remote add gitea https://lab2025.duckdns.org/git/jv/my-homelab-configs.git
|
||||
git -C "${deploy_dir}" fetch gitea main
|
||||
git -C "${deploy_dir}" checkout main
|
||||
git -C "${deploy_dir}" reset --hard "${{ gitea.sha }}"
|
||||
|
||||
"${deploy_dir}/lab.sh" up
|
||||
kubectl --kubeconfig "${KUBECONFIG:-/home/jv/.kube/config}" -n argocd get applications
|
||||
|
|
|
|||
Loading…
Reference in New Issue