blob: 9ad6292e26c473d55f57c73e53cba1e2c90c5275 (
plain) (
tree)
|
|
#!/bin/sh
set -eu
# Execute commands after building. Like pushing to an FTP server. #
# Example below. #
# TAR up the program. #
bsdtar -a -cf \
$DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz app/
# Send the artifacts to an FTP server. #
ftp -in <<EOF
open 192.168.255.255
user username p@ssw0rd
mkdir $DSCIP_NAME
cd $DSCIP_NAME
mkdir $CURRENT_COMMIT
cd $CURRENT_COMMIT
mkdir $(uname)
cd $(uname)
put $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz
put $WORKING_DIRECTORY/output.txt output-success.txt
close
bye
EOF
exit 0
|