forked from oxen-io/lokinet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add jason's suggested changes for artifact upload use lokinet-ci-nodejs-lts as base image so we can build the installer update ci pipeline for windows to have building gui toggle-able by default we will build the gui from this repo, but this allows it to easily run using a custom gui asset if needed
- Loading branch information
1 parent
c9d9289
commit 4490fdc
Showing
3 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,23 +67,23 @@ upload_to="oxen.rocks/${DRONE_REPO// /_}/${DRONE_BRANCH// /_}" | |
# -mkdir a/, -mkdir a/b/, -mkdir a/b/c/, ... commands. The leading `-` allows the command to fail | ||
# without error. | ||
upload_dirs=(${upload_to//\// }) | ||
put_debug= | ||
mkdirs= | ||
dir_tmp="" | ||
for p in "${upload_dirs[@]}"; do | ||
dir_tmp="$dir_tmp$p/" | ||
mkdirs="$mkdirs | ||
-mkdir $dir_tmp" | ||
done | ||
|
||
if [ -e "$base-debug-symbols.tar.xz" ] ; then | ||
put_debug="put $base-debug-symbols.tar.xz $upload_to" | ||
fi | ||
sftp -i ssh_key -b - -o StrictHostKeyChecking=off [email protected] <<SFTP | ||
$mkdirs | ||
put $archive $upload_to | ||
$put_debug | ||
SFTP | ||
|
||
if [ -e "$base-debug-symbols.tar.xz" ] ; then | ||
sftp -i ssh_key -b - -o StrictHostKeyChecking=off [email protected] <<<"put $base-debug-symbols.tar.xz $upload_to" | ||
fi | ||
|
||
set +o xtrace | ||
|
||
echo -e "\n\n\n\n\e[32;1mUploaded to https://${upload_to}/${archive}\e[0m\n\n\n" |