diff options
author | EuAndreh <eu@euandre.org> | 2021-02-20 16:02:52 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-02-20 16:02:52 -0300 |
commit | d6f00311f69d73f259eccd31ef3734dff8cb4b06 (patch) | |
tree | 573abfd8fc6902f383e0affddaa3fffed1f27ba0 /aux/ci/ci-build.sh | |
parent | Add placeholder long-description (diff) | |
download | euandre.org-d6f00311f69d73f259eccd31ef3734dff8cb4b06.tar.gz euandre.org-d6f00311f69d73f259eccd31ef3734dff8cb4b06.tar.xz |
Add aux/ci/report.sh
Diffstat (limited to '')
-rwxr-xr-x | aux/ci/ci-build.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/aux/ci/ci-build.sh b/aux/ci/ci-build.sh index acbc394..1159204 100755 --- a/aux/ci/ci-build.sh +++ b/aux/ci/ci-build.sh @@ -20,20 +20,28 @@ See CI logs with: git notes --ref=refs/notes/ci-logs show $SHA git notes --ref=refs/notes/ci-data show $SHA EOF - ) +) git notes --ref=refs/notes/ci-data add -f -m "$STATUS $FILENAME" git notes --ref=refs/notes/ci-logs add -f -F "$LOGFILE" git notes append -m "$NOTE" + + cd - + if [ -f ./aux/ci/report.sh ]; then + sh aux/ci/report.sh "$PACKAGE" + rsync -avzzP public/ "/srv/http/$PACKAGE/" --delete + fi + printf "\n>>>\n>>> CI logs added as Git note.\n>>>\n>>> Run status was %s" "$STATUS" } trap finish EXIT unset GIT_DIR - CLONE="$(mktemp -d)" - git clone . "$CLONE" - cd "$CLONE" + REMOTE="$PWD" + cd "$(mktemp -d)" + git clone "$REMOTE" . git config --global user.email git@euandre.org git config --global user.name 'EuAndreh CI' + git fetch origin refs/notes/*:refs/notes/* if [ -f aux/guix/with-container.sh ]; then RUNNER='./aux/guix/with-container.sh' |