Update deploy scripts

This commit is contained in:
Alexey Andreev 2019-04-03 12:04:48 +03:00
parent 91cf9917c7
commit 56cb14e30c
2 changed files with 3 additions and 4 deletions

View File

@ -65,7 +65,7 @@ after_success: >
export NEW_VERSION export NEW_VERSION
export FTP_HOST export FTP_HOST
export FTP_PORT export FTP_PORT
export FTP_LOGIN export FTP_USER
export FTP_PATH export FTP_PATH
export SSH_KEY export SSH_KEY
mv -f $HOME/built_artifacts_backup $HOME/mvn_repo/org/teavm mv -f $HOME/built_artifacts_backup $HOME/mvn_repo/org/teavm

View File

@ -2,13 +2,12 @@
echo "${SSH_KEY}" | base64 --decode >/tmp/sftp_rsa echo "${SSH_KEY}" | base64 --decode >/tmp/sftp_rsa
chmod 0700 /tmp/sftp_rsa chmod 0700 /tmp/sftp_rsa
SCP="scp -o StrictHostKeyChecking=no -i /tmp/sftp_rsa -B -r -P $FTP_PORT"
SCP_TARGET="$FTP_USER@$FTP_HOST:~/$FTP_PATH" SCP_TARGET="$FTP_USER@$FTP_HOST:~/$FTP_PATH"
# #
# Upload CLI # Upload CLI
# #
$SCP tools/cli/target/teavm-cli-$NEW_VERSION.jar $SCP_TARGET/cli/dev/ scp -o StrictHostKeyChecking=no -i /tmp/sftp_rsa -B -r -P $FTP_PORT tools/cli/target/teavm-cli-$NEW_VERSION.jar $SCP_TARGET/cli/dev/
# #
# Update IDEA repository descriptor # Update IDEA repository descriptor
@ -23,7 +22,7 @@ cat <<EOF >.idea-repository.xml
</plugins> </plugins>
EOF EOF
$SCP .idea-repository.xml $SCP_TARGET/idea/dev/teavmRepository.xml scp -o StrictHostKeyChecking=no -i /tmp/sftp_rsa -B -r -P $FTP_PORT .idea-repository.xml $SCP_TARGET/idea/dev/teavmRepository.xml
# #
# Upload Eclipse plugin # Upload Eclipse plugin