aboutsummaryrefslogtreecommitdiff
path: root/aux/ci/git-post-receive.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-14 09:33:56 -0300
committerEuAndreh <eu@euandre.org>2023-04-14 09:33:56 -0300
commite90d6bc34fdf8f590c92ffecacfc90cc3885611e (patch)
tree4c24dc9c4fdf72ed087c9e3e311479d13d9a667e /aux/ci/git-post-receive.sh
parentTODOs.md: Add #task-1554614f-2e33-616d-d021-70828dbf0381 (diff)
downloadgistatic-e90d6bc34fdf8f590c92ffecacfc90cc3885611e.tar.gz
gistatic-e90d6bc34fdf8f590c92ffecacfc90cc3885611e.tar.xz
rm -rf aux/
Diffstat (limited to 'aux/ci/git-post-receive.sh')
-rwxr-xr-xaux/ci/git-post-receive.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/aux/ci/git-post-receive.sh b/aux/ci/git-post-receive.sh
deleted file mode 100755
index 92bba73..0000000
--- a/aux/ci/git-post-receive.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-set -eu
-
-for n in $(seq 0 $((GIT_PUSH_OPTION_COUNT - 1))); do
- opt="$(eval "echo \$GIT_PUSH_OPTION_$n")"
- if [ "$opt" = skip-ci ] || [ "$opt" = ci-skip ]; then
- printf "\n'%s' option detected, not running ci-build.sh\n\n" \
- "$opt"
- exit 0
- fi
-done
-
-# shellcheck disable=2034
-read -r _oldrev SHA _refname
-
-PROJECT="$(basename "$PWD" | cut -d. -f1)" # remove .git suffix
-LOGS_DIR="/opt/ci/$PROJECT/logs"
-sh "/opt/ci/$PROJECT/ci-build.sh" "$PROJECT" "$LOGS_DIR" "$SHA" ||:
-
-echo 'To retrigger the build, run:'
-echo "cd /srv/http/$PROJECT.git/"
-echo "sh /opt/ci/$PROJECT/ci-build.sh" "$PROJECT" "$LOGS_DIR" "$SHA"