sync: eiki 2025-12-07 18:58

This commit is contained in:
2025-12-07 18:58:04 +06:00
parent e79dd30082
commit 314fe4354d
2 changed files with 2 additions and 13 deletions

View File

@@ -4,11 +4,6 @@ set -euo pipefail
PILL_REPO="$HOME/gentoo-pill" PILL_REPO="$HOME/gentoo-pill"
HOSTNAME_TAG="${HOSTNAME:-$(hostname)}" HOSTNAME_TAG="${HOSTNAME:-$(hostname)}"
# remote trigger
SERVER_USER="mira"
SERVER_IP="192.168.102.148"
SERVER_BINHOST_DIR="$HOME/gentoo-pill"
HOST_DIR="$PILL_REPO/hosts/$HOSTNAME_TAG" HOST_DIR="$PILL_REPO/hosts/$HOSTNAME_TAG"
echo "Syncing configuration for: $HOSTNAME_TAG" echo "Syncing configuration for: $HOSTNAME_TAG"
@@ -48,13 +43,6 @@ if [[ -n $(git status --porcelain) ]]; then
git commit -m "sync: $HOSTNAME_TAG $(date +'%Y-%m-%d %H:%M')" git commit -m "sync: $HOSTNAME_TAG $(date +'%Y-%m-%d %H:%M')"
git push git push
echo "Changes pushed successfully." echo "Changes pushed successfully."
# trigger the remote
if [[ -n "$SERVER_IP" ]]; then
echo "Triggering binhost build @ [$SERVER_IP]..."
ssh -A "${SERVER_USER}@${SERVER_IP}" \
"cd \"${SERVER_BINHOST_DIR}\" && ./binhost.sh"
fi
else else
echo "No changes, binhost trig skipped" echo "No changes"
fi fi

View File

@@ -26,3 +26,4 @@ x11-misc/dmenu
x11-misc/slop x11-misc/slop
x11-terms/alacritty x11-terms/alacritty
x11-wm/bspwm x11-wm/bspwm
sys-devel/crossdev