CI resources moved to upload.psycopg.org

This commit is contained in:
Daniele Varrazzo 2019-12-30 18:13:01 +01:00
parent 9154d0920c
commit 501b0412f6
2 changed files with 6 additions and 5 deletions

View File

@ -516,15 +516,16 @@ def upload_packages():
# Upload built artifacts # Upload built artifacts
logger.info("uploading artifacts") logger.info("uploading artifacts")
ssh_cmd = r"C:\MinGW\msys\1.0\bin\ssh -i %s -o UserKnownHostsFile=%s" % ( ssh_cmd = (
opt.clone_dir / "id_rsa", r"C:\MinGW\msys\1.0\bin\ssh -i %s "
opt.clone_dir / 'known_hosts', "-o UserKnownHostsFile=%s -o StrictHostKeyChecking=yes"
% (opt.clone_dir / "id_rsa", opt.clone_dir / 'known_hosts')
) )
os.chdir(opt.package_dir) os.chdir(opt.package_dir)
run_command( run_command(
[r"C:\MinGW\msys\1.0\bin\rsync", "-avr"] [r"C:\MinGW\msys\1.0\bin\rsync", "-avr"]
+ ["-e", ssh_cmd, "dist/", "upload@initd.org:"] + ["-e", ssh_cmd, "dist/", "psycopg@upload.psycopg.org:"]
) )

View File

@ -50,7 +50,7 @@ create () {
else else
# A dinosaur # A dinosaur
wget -O - \ wget -O - \
http://initd.org/psycopg/upload/postgresql/postgresql-${PACKAGE}-$(lsb_release -cs).tar.bz2 \ http://upload.psycopg.org/postgresql/postgresql-${PACKAGE}-$(lsb_release -cs).tar.bz2 \
| sudo tar xjf - -C /usr/lib/postgresql | sudo tar xjf - -C /usr/lib/postgresql
fi fi
fi fi