Target uploads to new dropbox address

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)
This commit is contained in:
renaud gaudin 2022-03-30 22:10:06 +00:00
parent 4158d75d7a
commit 1351fc7f8b
6 changed files with 19 additions and 10 deletions

View file

@ -168,8 +168,15 @@ def upload(file_to_upload, host, dest_path):
print_message("No {} to upload!", file_to_upload)
return
if ":" in host:
host, port = host.split(":", 1)
else:
port = "22"
command = [
"ssh",
"-p",
port,
"-i",
_environ.get("SSH_KEY"),
"-o",
@ -182,6 +189,8 @@ def upload(file_to_upload, host, dest_path):
command = [
"scp",
"-P",
port,
"-i",
_environ.get("SSH_KEY"),
"-o",
@ -195,10 +204,10 @@ def upload(file_to_upload, host, dest_path):
def upload_archive(archive, project, make_release):
if project.startswith("kiwix-") or project in ['libkiwix']:
host = "ci@download.kiwix.org"
host = "ci@master.download.kiwix.org:30022"
dest_path = "/data/download/"
else:
host = "ci@download.openzim.org"
host = "ci@download.openzim.org:30022"
dest_path = "/data/openzim/"
if make_release:

View file

@ -32,5 +32,5 @@ else:
for target in TARGETS:
run_kiwix_build(target, platform=PLATFORM_TARGET, build_deps_only=True)
archive_file = make_deps_archive(target=target)
upload(archive_file, "ci@tmp.kiwix.org", "/data/tmp/ci")
upload(archive_file, "ci@tmp.kiwix.org:30022", "/data/tmp/ci")
os.remove(str(archive_file))

View file

@ -69,5 +69,5 @@ except URLError:
else:
run_kiwix_build("alldependencies", platform=PLATFORM_TARGET)
archive_file = make_deps_archive(name=base_dep_archive_name, full=True)
upload(archive_file, "ci@tmp.kiwix.org", "/data/tmp/ci")
upload(archive_file, "ci@tmp.kiwix.org:30022", "/data/tmp/ci")
os.remove(str(archive_file))

View file

@ -9,7 +9,7 @@ tar -czf ${ARCHIVE_NAME} $HOME/BUILD_* $HOME/SOURCE $HOME/LOGS $HOME/TOOLCHAINS
echo "Uploading archive $ARCHIVE_NAME"
scp -p -i ${SSH_KEY} \
scp -P 30022 -p -i ${SSH_KEY} \
-o PasswordAuthentication=no \
-o StrictHostKeyChecking=no \
$ARCHIVE_NAME \