diff options
| author | EuAndreh <eu@euandre.org> | 2021-07-25 15:16:31 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-07-25 15:16:31 -0300 |
| commit | 7400e108286a0fceacdac63b125fdc924c2dd50c (patch) | |
| tree | 4849176606778477ead8a9ded4c9ff43bf4a8feb /aux/ci/git-pre-push.sh | |
| parent | servers/nixvps/configuration.nix: Serve Git repositories from NGINX, remove G... (diff) | |
| download | server-7400e108286a0fceacdac63b125fdc924c2dd50c.tar.gz server-7400e108286a0fceacdac63b125fdc924c2dd50c.tar.xz | |
aux/: Update
Diffstat (limited to '')
| -rwxr-xr-x | aux/ci/git-pre-push.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/aux/ci/git-pre-push.sh b/aux/ci/git-pre-push.sh index e73b9b8..eaaa7bd 100755 --- a/aux/ci/git-pre-push.sh +++ b/aux/ci/git-pre-push.sh @@ -2,12 +2,13 @@ set -eux TLD="$(cat aux/tld.txt)" +. aux/lib.sh -PACKAGE="$(basename "$PWD")" -LOGS_DIR="/opt/ci/$PACKAGE/logs" -REMOTE_GIT_DIR="/srv/git/$PACKAGE.git" +PROJECT="$(basename "$PWD")" +LOGS_DIR="/opt/ci/$PROJECT/logs" +REMOTE_GIT_DIR="/srv/http/$PROJECT.git" -DESCRIPTION="$(mktemp)" +DESCRIPTION="$(mkstemp)" if [ -f description ] then cp description "$DESCRIPTION" |
