Skip to content
Snippets Groups Projects
Commit c4394f84 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

RSYNC_SYNC_EXECHOOK_COMMAND

parent b19433c5
Branches
No related tags found
No related merge requests found
...@@ -16,5 +16,6 @@ Preset env vars: ...@@ -16,5 +16,6 @@ Preset env vars:
- RSYNC_SYNC_WEBHOOK_BACKOFF=3 - RSYNC_SYNC_WEBHOOK_BACKOFF=3
- RSYNC_SYNC_WEBHOOK_ATTEMPTS=3 - RSYNC_SYNC_WEBHOOK_ATTEMPTS=3
Custom env vars: Custom env vars (in order of execution):
- RSYNC_SYNC_WEBHOOK_URL 1. RSYNC_SYNC_EXECHOOK_COMMAND
2. RSYNC_SYNC_WEBHOOK_URL
...@@ -7,6 +7,10 @@ rsync -a \ ...@@ -7,6 +7,10 @@ rsync -a \
"${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-sync}/" \ "${GIT_SYNC_ROOT:-/tmp/git}/${GIT_SYNC_DEST:-sync}/" \
/sync /sync
if test -n "${RSYNC_SYNC_EXECHOOK_COMMAND}"; then
/usr/bin/env sh "${RSYNC_SYNC_EXECHOOK_COMMAND}"
fi
if test -n "${RSYNC_SYNC_WEBHOOK_URL}"; then if test -n "${RSYNC_SYNC_WEBHOOK_URL}"; then
curl -I -L \ curl -I -L \
-X ${RSYNC_SYNC_WEBHOOK_METHOD:-POST} \ -X ${RSYNC_SYNC_WEBHOOK_METHOD:-POST} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment