Something went wrong. Try again.
Items for the sister.systems pds
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233#!/usr/bin/env bashset -euo pipefail
REPO_DIR="/app"LOG_FILE="${REPO_DIR}/.deploy-log"
exec >> "${LOG_FILE}" 2>&1
echo "[deploy] starting at $(date -u +%Y-%m-%dT%H:%M:%SZ)"
cd "${REPO_DIR}"
echo '[deploy] marking /app as a safe git directory...'git config --global --add safe.directory /app
export GIT_SSH_COMMAND='ssh -i ~/.ssh/sdb_atproto_deploy -o StrictHostKeyChecking=no'
echo '[deploy] fetching latest code from Tangled...'git fetch origin main
echo '[deploy] resetting working tree to origin/main...'git reset --hard origin/main
echo '[deploy] cleaning untracked files...'git clean -fd -e .deploy-log
echo '[deploy] restarting web container...'docker compose -f /pds/compose.yaml up -d --no-deps web
echo '[deploy] deploy complete'
echo "[deploy] finished at $(date -u +%Y-%m-%dT%H:%M:%SZ)"