remove rsync and change download url
This commit is contained in:
@@ -44,10 +44,10 @@ jobs:
|
||||
script: skip
|
||||
before_deploy:
|
||||
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
|
||||
- openssl aes-256-cbc -K $encrypted_6ae8173eef05_key -iv $encrypted_6ae8173eef05_iv -in .travis/deploy_rsa.enc -out /tmp/deploy_rsa -d
|
||||
- eval "$(ssh-agent -s)"
|
||||
- chmod 600 /tmp/deploy_rsa
|
||||
- ssh-add /tmp/deploy_rsa
|
||||
#- openssl aes-256-cbc -K $encrypted_6ae8173eef05_key -iv $encrypted_6ae8173eef05_iv -in .travis/deploy_rsa.enc -out /tmp/deploy_rsa -d
|
||||
#- eval "$(ssh-agent -s)"
|
||||
#- chmod 600 /tmp/deploy_rsa
|
||||
#- ssh-add /tmp/deploy_rsa
|
||||
deploy:
|
||||
provider: script
|
||||
skip_cleanup: true
|
||||
|
||||
@@ -47,11 +47,12 @@ if [ "$TRAVIS" = "true" ]; then
|
||||
cd /tmp
|
||||
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
|
||||
|
||||
echo "running rsync"
|
||||
rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/phpvms/downloads/
|
||||
#echo "running rsync"
|
||||
#rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/phpvms/downloads/
|
||||
|
||||
echo "uploading to s3"
|
||||
cd /tmp/
|
||||
artifacts upload --target-paths "/" $TAR_NAME
|
||||
|
||||
curl -X POST --data "{\"content\": \"A new build is available at http://phpvms.net/downloads/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL
|
||||
curl -X POST --data "{\"content\": \"A new build is available at http://downloads.phpvms.net/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user