deploy: self-locating autodeploy (path-independent)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user