about summary refs log tree commit diff stats
path: root/post.sh
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-07-26 05:50:10 -0400
committerCharadon <dev@iotib.net>2022-07-26 05:50:10 -0400
commit6176d566f2ecf0c97a2aa545626ccfe26ebb8e79 (patch)
tree01eaabf79ce4b43189cb63337c803387112e0319 /post.sh
parent78462c3cde93bc028b23369203f78ef080e3fdee (diff)
downloaddscip-6176d566f2ecf0c97a2aa545626ccfe26ebb8e79.tar.gz
Added a couple better defaults
Diffstat (limited to 'post.sh')
-rwxr-xr-xpost.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/post.sh b/post.sh
index 93b324e..8d5404b 100755
--- a/post.sh
+++ b/post.sh
@@ -6,7 +6,8 @@ set -eu
 # Example below. #
 
 # TAR up the program.                                                          #
-bsdtar -a -cf program-$CURRENT_COMMIT.tar.gz app/
+bsdtar --options xz:compression-level=9 -a -cf \
+$DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz app/
 
 # Send the artifacts to an FTP server.                                         #
 ftp -in <<EOF
@@ -14,8 +15,8 @@ open 192.168.255.255
 user username p@ssw0rd
 mkdir $CURRENT_COMMIT
 cd $CURRENT_COMMIT
-put program-$CURRENT_COMMIT.tar.gz program-$CURRENT_COMMIT.tar.gz
-put $WORKING_DIRECTORY/output.txt $CURRENT_COMMIT-output.txt
+put $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz
+put $WORKING_DIRECTORY/output.txt output-$CURRENT_COMMIT.txt
 close
 bye
 EOF