diff options
author | Grégoire Seux | 2018-01-27 11:23:42 +0100 |
---|---|---|
committer | Grégoire Seux | 2018-01-27 11:23:42 +0100 |
commit | a12f5c6852f087ec1c8c7c2cdb30b2bcaca3658f (patch) | |
tree | 95ab4344f2d43c790453f7bc74e17413d22337e2 | |
parent | 27852f2d4773d7efcceb74f0311ec57f8aa9b06c (diff) | |
download | aur-a12f5c6852f087ec1c8c7c2cdb30b2bcaca3658f.tar.gz |
Extract deploy in script
-rwxr-xr-x | .travis-deploy.sh | 16 | ||||
-rw-r--r-- | .travis.yml | 7 |
2 files changed, 17 insertions, 6 deletions
diff --git a/.travis-deploy.sh b/.travis-deploy.sh new file mode 100755 index 000000000000..affe16d9525c --- /dev/null +++ b/.travis-deploy.sh @@ -0,0 +1,16 @@ +#!/usr/bin/bash + +if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then + echo "Pull request, skipping publication to aur" + exit 0 +fi + +mkdir -p ~/.ssh +echo -e "Host aur.archlinux.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config +mv id_rsa ~/.ssh/ +chmod 600 ~/.ssh/id_rsa +git remote add aur git+ssh://aur@aur.archlinux.org/home-assistant.git + +echo "Pushing to AUR" + +git push aur HEAD:master diff --git a/.travis.yml b/.travis.yml index 859d2bd2a970..bf241cb91acc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,4 @@ before_install: - openssl aes-256-cbc -K $encrypted_0727dd33f742_key -iv $encrypted_0727dd33f742_iv -in id_rsa.enc -out id_rsa -d script: - - mkdir -p ~/.ssh - - echo -e "Host aur.archlinux.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config - - mv id_rsa ~/.ssh/ - - chmod 600 ~/.ssh/id_rsa - - git remote add aur git+ssh://aur@aur.archlinux.org/home-assistant.git - - git push aur HEAD:master + - .travis-deploy.sh |