mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-04-22 13:47:06 -04:00
SSH server which was used to receive file uploads (CI, nightly and release) has been migrated to a new one on a different address. Username, Key and paths are unchanged. Most notable changes are the use of `master.download.kiwix.org` as the target in replacement of `mirror.download.kiwix.org` (although it would still work) and the Port to which SSH is listening on (30022 instead of 22)
21 lines
728 B
Bash
Executable file
21 lines
728 B
Bash
Executable file
set -e
|
|
|
|
NIGHTLY_DATE=$(date +%Y-%m-%d)
|
|
NIGHTLY_KIWIX_ARCHIVES_DIR=/c/projects/NIGHTLY_KIWIX_ARCHIVES/${NIGHTLY_DATE}
|
|
RELEASE_KIWIX_ARCHIVES_DIR=/c/projects/RELEASE_KIWIX_ARCHIVES
|
|
SSH_KEY=C:\\projects\\kiwix-build\\appveyor\\nightlybot_id_key
|
|
|
|
if [[ "$APPVEYOR_SCHEDULED_BUILD" = "True" ]]
|
|
then
|
|
scp -P 30022 -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
|
|
${NIGHTLY_KIWIX_ARCHIVES_DIR} \
|
|
ci@master.download.kiwix.org:/data/download/nightly
|
|
fi
|
|
|
|
if [[ "$APPVEYOR_REPO_TAG" = "true" ]]
|
|
then
|
|
RELEASE_ARCHIVES=$(find $RELEASE_KIWIX_ARCHIVES_DIR -type f)
|
|
scp -P 30022 -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
|
|
${RELEASE_ARCHIVES} \
|
|
ci@master.download.kiwix.org:/data/download/release/kiwix-desktop
|
|
fi
|