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
logger.info("uploading artifacts")
ssh_cmd = r"C:\MinGW\msys\1.0\bin\ssh -i %s -o UserKnownHostsFile=%s" % (
opt.clone_dir / "id_rsa",
opt.clone_dir / 'known_hosts',
ssh_cmd = (
r"C:\MinGW\msys\1.0\bin\ssh -i %s "
"-o UserKnownHostsFile=%s -o StrictHostKeyChecking=yes"
% (opt.clone_dir / "id_rsa", opt.clone_dir / 'known_hosts')
)
os.chdir(opt.package_dir)
run_command(
[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
# A dinosaur
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
fi
fi