remove rsync and change download url
This commit is contained in:
@@ -44,10 +44,10 @@ jobs:
|
|||||||
script: skip
|
script: skip
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
|
- 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
|
#- 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)"
|
#- eval "$(ssh-agent -s)"
|
||||||
- chmod 600 /tmp/deploy_rsa
|
#- chmod 600 /tmp/deploy_rsa
|
||||||
- ssh-add /tmp/deploy_rsa
|
#- ssh-add /tmp/deploy_rsa
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
|||||||
@@ -47,11 +47,12 @@ if [ "$TRAVIS" = "true" ]; then
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
|
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
|
||||||
|
|
||||||
echo "running rsync"
|
#echo "running rsync"
|
||||||
rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/phpvms/downloads/
|
#rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/phpvms/downloads/
|
||||||
|
|
||||||
|
echo "uploading to s3"
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
artifacts upload --target-paths "/" $TAR_NAME
|
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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user