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