diff options
author | EuAndreh <eu@euandre.org> | 2023-03-30 15:23:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-30 15:23:05 -0300 |
commit | fc15af22490d563be3f66186e95dbbc02401f112 (patch) | |
tree | 228e8079988efedf7ce637cb74c84555502b20b6 /src | |
parent | Makefile: Fix directory of CI output (diff) | |
download | toph-fc15af22490d563be3f66186e95dbbc02401f112.tar.gz toph-fc15af22490d563be3f66186e95dbbc02401f112.tar.xz |
conf.env: Separate $HTML_OUTDIR into $HTML_OUTDIR_{OUT,CI}
Notes
See CI logs with:
git notes --ref=refs/notes/ci-logs show fc15af22490d563be3f66186e95dbbc02401f112
git notes --ref=refs/notes/ci-data show fc15af22490d563be3f66186e95dbbc02401f112
Exit status: 0
Duration: 21
Diffstat (limited to 'src')
-rwxr-xr-x | src/infrastructure/ci/git-post-receive.sh | 2 | ||||
-rw-r--r-- | src/infrastructure/config/conf.env | 3 | ||||
-rwxr-xr-x | src/infrastructure/scripts/reconfigure.sh | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/infrastructure/ci/git-post-receive.sh b/src/infrastructure/ci/git-post-receive.sh index 65a17a5..612a268 100755 --- a/src/infrastructure/ci/git-post-receive.sh +++ b/src/infrastructure/ci/git-post-receive.sh @@ -144,7 +144,7 @@ mkdtemp() { --chown=deployer:deployer \ --delete \ -a \ - "$DIR"/ "$HTML_OUTDIR"/ci/ + "$DIR"/ "$HTML_OUTDIR_CI"/ rm -rf "$DIR" } 1>/dev/null 2>&1 & } diff --git a/src/infrastructure/config/conf.env b/src/infrastructure/config/conf.env index 7c683f3..04af0c4 100644 --- a/src/infrastructure/config/conf.env +++ b/src/infrastructure/config/conf.env @@ -4,9 +4,10 @@ NAME='servers' TLD='euandre.org' RSYNC_ACCT='zh3051@zh3051' OUT_SUFFIX="s/$NAME" +HTML_OUTDIR_TOP="/srv/www/$OUT_SUFFIX" +HTML_OUTDIR_CI="$HTML_OUTDIR_TOP/ci" RSYNC_ADDR="$RSYNC_ACCT.rsync.net" -HTML_OUTDIR="/srv/www/$OUT_SUFFIX/" HOMEPAGE="https://$TLD/$OUT_SUFFIX/" CGIT_URL="https://$TLD/git/$NAME/commit/?id=" REPO_NAME="$NAME.git" diff --git a/src/infrastructure/scripts/reconfigure.sh b/src/infrastructure/scripts/reconfigure.sh index ed3da6f..b11bc72 100755 --- a/src/infrastructure/scripts/reconfigure.sh +++ b/src/infrastructure/scripts/reconfigure.sh @@ -133,11 +133,11 @@ else sudo -i guix system -c$NPROC -v3 reconfigure /etc/guix/system.scm sudo -u deployer rsync \ + --delete \ --chmod=D775,F664 \ --chown=deployer:deployer \ -a \ - --exclude='dev/ci/*' \ - /run/current-system/profile/share/doc/"$NAME"/ "$HTML_OUTDIR" + /run/current-system/profile/share/doc/"$NAME"/ "$HTML_OUTDIR_TOP"/ deploy fi |