diff options
author | EuAndreh <eu@euandre.org> | 2023-03-13 10:33:12 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-13 10:33:12 -0300 |
commit | 1aae8bf19fb588853c6ec594d0b6fbc2aebf07b9 (patch) | |
tree | 75edac50b1082121afd29e75ce0a889d33f30349 /src | |
parent | src/infrastructure/scripts/report.sh: Remove redundant margin CSS value (diff) | |
download | toph-1aae8bf19fb588853c6ec594d0b6fbc2aebf07b9.tar.gz toph-1aae8bf19fb588853c6ec594d0b6fbc2aebf07b9.tar.xz |
git-post-receive.sh: Derive $LOGS_DIR from repository directory name
Notes
See CI logs with:
git notes --ref=refs/notes/ci-logs show 1aae8bf19fb588853c6ec594d0b6fbc2aebf07b9
git notes --ref=refs/notes/ci-data show 1aae8bf19fb588853c6ec594d0b6fbc2aebf07b9
Exit status: 0
Duration: 20
Diffstat (limited to 'src')
-rwxr-xr-x | src/infrastructure/ci/git-post-receive.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/infrastructure/ci/git-post-receive.sh b/src/infrastructure/ci/git-post-receive.sh index ab8c9d5..bd21478 100755 --- a/src/infrastructure/ci/git-post-receive.sh +++ b/src/infrastructure/ci/git-post-receive.sh @@ -41,7 +41,7 @@ now() { date '+%Y-%m-%dT%H:%M:%S%:z' } -LOGS_DIR=/var/log/ci/servers/ +LOGS_DIR=/var/log/ci/"$(basename "$PWD" .git)"/ TIMESTAMP="$(now)" FILENAME="$TIMESTAMP-$SHA.log" LOGFILE="$LOGS_DIR/$FILENAME" |