diff --git a/deploy/autodeploy.sh b/deploy/autodeploy.sh index e9d33c8..90ed30e 100644 --- a/deploy/autodeploy.sh +++ b/deploy/autodeploy.sh @@ -3,7 +3,7 @@ # ponytail: 1-minute cron poll, not a webhook — swap for the Gitea runner # (.gitea/workflows/deploy.yml) once the runner's job image has the Docker CLI + socket. set -e -REPO=/opt/resumesite +REPO=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) # repo root, wherever this lives exec 9>/tmp/resumesite-deploy.lock flock -n 9 || exit 0 # a build is already running cd "$REPO"