blob: ccd097b6297db7e2652a5814c7ba3998148999f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
set -e
# Execute commands after building. Like pushing to an FTP server. #
# Below is an example of what commands you could use. #
bsdtar -a -cvf program-$CURRENT_COMMIT.tar.gz app/
ftp -in <<EOF
open 192.168.1.1
user example password
mkdir $CURRENT_COMMIT
cd $CURRENT_COMMIT
put program-$CURRENT_COMMIT.tar.gz program-$CURRENT_COMMIT.tar.gz
put $WORKING_DIRECTORY/output.log output.log
close
bye
EOF
exit 0
|