From a595d0fcd62089193999ea5a6bea0d6b6d8f670e Mon Sep 17 00:00:00 2001 From: Jonathan Van Buren Date: Thu, 30 May 2019 16:29:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=80=EF=B8=8F=20=20Ge?= =?UTF-8?q?tting=20travis=20to=20build=20the=20project=205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 20 ++++++++++---------- deploy.sh | 10 ++++++++++ 2 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 deploy.sh diff --git a/.travis.yml b/.travis.yml index 59821df..464f909 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,16 +17,16 @@ jobs: script: - set -e - ls - - docker run -v $(pwd):/app -v $(yarn cache dir):/yarn-cache -e CODECOV_TOKEN="$CODECOV_TOKEN" vanbujm/moonbase-balena:v0.1.0-ci-v0.2.14 -c "cd /app && yarn --ignore-scripts --cache-folder /yarn-cache && ./download-binary-arm.sh && ./build-server.sh" - - ls - - eval "$(ssh-agent -s)" - - echo -e $BALENA_CLOUD_KEY > id_rsa - - chmod 0600 id_rsa - - ssh-add ./id_rsa - - cat balenakey >> ~/.ssh/known_hosts - - git fetch --unshallow origin - - git remote add balena $BALENA_REMOTE - - git push -f balena master + - docker run -v $(pwd):/app -v $(yarn cache dir):/yarn-cache -e CODECOV_TOKEN="$CODECOV_TOKEN" -e BALENA_CLOUD_KEY="$BALENA_CLOUD_KEY" -e BALENA_REMOTE="$BALENA_REMOTE" vanbujm/moonbase-balena:v0.1.0-ci-v0.2.14 -c "cd /app && yarn --ignore-scripts --cache-folder /yarn-cache && ./download-binary-arm.sh && ./build-server.sh" +# - ls +# - eval "$(ssh-agent -s)" +# - echo -e $BALENA_CLOUD_KEY > id_rsa +# - chmod 0600 id_rsa +# - ssh-add ./id_rsa +# - cat balenakey >> ~/.ssh/known_hosts +# - git fetch --unshallow origin +# - git remote add balena $BALENA_REMOTE +# - git push -f balena master cache: yarn: true directories: diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..2401f44 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +eval "$(ssh-agent -s)" +echo -e $BALENA_CLOUD_KEY > id_rsa +chmod 0600 id_rsa +ssh-add ./id_rsa +cat balenakey >> ~/.ssh/known_hosts +git fetch --unshallow origin +git remote add balena $BALENA_REMOTE +git push -f balena master