summaryrefslogtreecommitdiff
path: root/src/post-receive
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-09 07:55:56 -0300
committerEuAndreh <eu@euandre.org>2025-03-09 07:56:12 -0300
commit9f9f144b776ad6c34f963ab897fe19cb4d366a04 (patch)
tree319417f8151ffd82863ee33774456a64fa3e8fa7 /src/post-receive
parentsrc/cicd: Stop executing things at all (diff)
downloadcicd-9f9f144b776ad6c34f963ab897fe19cb4d366a04.tar.gz
cicd-9f9f144b776ad6c34f963ab897fe19cb4d366a04.tar.xz
git mv src/post-receive src/cicd-post-receive
Diffstat (limited to 'src/post-receive')
-rwxr-xr-xsrc/post-receive34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/post-receive b/src/post-receive
deleted file mode 100755
index 2dc4128..0000000
--- a/src/post-receive
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-set -eu
-
-
-
-read -r _oldrev SHA REFNAME
-
-if [ "$SHA" = '0000000000000000000000000000000000000000' ]; then
- exit
-fi
-
-
-DEPLOY_OPT=
-for n in `seq 0 $((GIT_PUSH_OPTION_COUNT - 1))`; do
- opt="$(eval "printf '%s' \"\$GIT_PUSH_OPTION_$n\"")"
- case "$opt" in
- (ci.skip)
- cat <<-EOF >&2
-
- "$opt" option detected, not running CI.
-
- EOF
- exit
- ;;
- (deploy.skip)
- DEPLOY_OPT=-n
- ;;
- (*)
- ;;
- esac
-done
-
-
-cicd add $DEPLOY_OPT -V "$SHA" -R "$REFNAME" "$PWD"