1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-06-30 10:14:56 +00:00

Compare commits

...

6 commits

18
build
View file

@ -18,7 +18,7 @@ lantern_path="./lantern-build-engine";
# Deployment settings # Deployment settings
deploy_ssh_user="ci"; deploy_ssh_user="ci";
deploy_ssh_host="apt.starbeamrainbowlabs.com"; deploy_ssh_host="apt.starbeamrainbowlabs.com";
deploy_ssh_port="22"; deploy_ssh_port="2403";
deploy_root_dir="CIAptPackages"; deploy_root_dir="CIAptPackages";
############################################################################### ###############################################################################
@ -91,7 +91,7 @@ task_package() {
PolyFeed/bin/polyfeed=/usr/lib \ PolyFeed/bin/polyfeed=/usr/lib \
polyfeed=/usr/bin/polyfeed; polyfeed=/usr/bin/polyfeed;
execute rm -r PolyFeed/bin/polyfeed; execute rm -r PolyFeed/bin/polyfeed;
execute dpkg -c *.deb; # We don't know it's name :P execute dpkg -c "$(ls -ct *.deb | head -n1)"; # We don't know it's name :P
task_end $?; task_end $?;
} }
@ -102,14 +102,22 @@ task_archive() {
task_end $?; task_end $?;
} }
task_upload-release() { # $1 - The filename to upload
task_begin "Uploading release .deb file"; _upload_deb() {
filename="${1}";
echo "Found ${filename}";
sftp -i "${SSH_KEY_PATH}" -P "${deploy_ssh_port}" -o PasswordAuthentication=no "${deploy_ssh_user}@${deploy_ssh_host}" << SFTPCOMMANDS sftp -i "${SSH_KEY_PATH}" -P "${deploy_ssh_port}" -o PasswordAuthentication=no "${deploy_ssh_user}@${deploy_ssh_host}" << SFTPCOMMANDS
put ./*.deb ${deploy_root_dir} put ${filename} ${deploy_root_dir}/
bye bye
SFTPCOMMANDS SFTPCOMMANDS
}
task_upload-release() {
task_begin "Uploading release .deb file(s)";
_upload_deb "$(ls -ct *.deb | head -n1)";
task_end $?; task_end $?;
} }