diff options
author | EuAndreh <eu@euandre.org> | 2021-06-07 22:55:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-07 22:55:16 -0300 |
commit | f5ec71eadaf1e1479fbb8b5884edc4a87a8d2f63 (patch) | |
tree | 525a4ec4d34f5417c623dd24bd855cddee151938 /aux/ci/git-pre-push.sh | |
parent | TODOs.md: Mark #task-4686d9a5-3514-e7f2-25de-b3cf66199124 as CANCELLED (diff) | |
download | remembering-f5ec71eadaf1e1479fbb8b5884edc4a87a8d2f63.tar.gz remembering-f5ec71eadaf1e1479fbb8b5884edc4a87a8d2f63.tar.xz |
Update files under aux/
Diffstat (limited to 'aux/ci/git-pre-push.sh')
-rwxr-xr-x | aux/ci/git-pre-push.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/aux/ci/git-pre-push.sh b/aux/ci/git-pre-push.sh index 5a7ca0b..e73b9b8 100755 --- a/aux/ci/git-pre-push.sh +++ b/aux/ci/git-pre-push.sh @@ -1,6 +1,8 @@ #!/bin/sh set -eux +TLD="$(cat aux/tld.txt)" + PACKAGE="$(basename "$PWD")" LOGS_DIR="/opt/ci/$PACKAGE/logs" REMOTE_GIT_DIR="/srv/git/$PACKAGE.git" @@ -13,7 +15,7 @@ else git config euandreh.description > "$DESCRIPTION" fi -scp "$DESCRIPTION" "git.euandreh.xyz:$REMOTE_GIT_DIR/description" -ssh git.euandreh.xyz mkdir -p "$LOGS_DIR" -scp aux/ci/ci-build.sh "git.euandreh.xyz:$(dirname "$LOGS_DIR")/ci-build.sh" -scp aux/ci/git-post-receive.sh "git.euandreh.xyz:$REMOTE_GIT_DIR/hooks/post-receive" +scp "$DESCRIPTION" "$TLD:$REMOTE_GIT_DIR/description" +ssh "$TLD" mkdir -p "$LOGS_DIR" +scp aux/ci/ci-build.sh "$TLD:$(dirname "$LOGS_DIR")/ci-build.sh" +scp aux/ci/git-post-receive.sh "$TLD:$REMOTE_GIT_DIR/hooks/post-receive" |