mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-06-27 09:44:55 +00:00
Compare commits
6 commits
cdf8ee65be
...
6a0dcceca5
Author | SHA1 | Date | |
---|---|---|---|
|
6a0dcceca5 | ||
|
781d92c89f | ||
|
60faba6252 | ||
|
03b3ad3c52 | ||
|
72bafca0d6 | ||
|
03a5c83155 |
18
build
18
build
|
@ -18,7 +18,7 @@ lantern_path="./lantern-build-engine";
|
|||
# Deployment settings
|
||||
deploy_ssh_user="ci";
|
||||
deploy_ssh_host="apt.starbeamrainbowlabs.com";
|
||||
deploy_ssh_port="22";
|
||||
deploy_ssh_port="2403";
|
||||
deploy_root_dir="CIAptPackages";
|
||||
|
||||
###############################################################################
|
||||
|
@ -91,7 +91,7 @@ task_package() {
|
|||
PolyFeed/bin/polyfeed=/usr/lib \
|
||||
polyfeed=/usr/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 $?;
|
||||
|
||||
}
|
||||
|
@ -102,14 +102,22 @@ task_archive() {
|
|||
task_end $?;
|
||||
}
|
||||
|
||||
task_upload-release() {
|
||||
task_begin "Uploading release .deb file";
|
||||
# $1 - The filename to upload
|
||||
_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
|
||||
put ./*.deb ${deploy_root_dir}
|
||||
put ${filename} ${deploy_root_dir}/
|
||||
bye
|
||||
SFTPCOMMANDS
|
||||
|
||||
|
||||
}
|
||||
|
||||
task_upload-release() {
|
||||
task_begin "Uploading release .deb file(s)";
|
||||
_upload_deb "$(ls -ct *.deb | head -n1)";
|
||||
task_end $?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue