Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
👷‍♀️ Getting travis to build the project 5
Browse files Browse the repository at this point in the history
  • Loading branch information
vanbujm committed May 30, 2019
1 parent 40dc79b commit a595d0f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a595d0f

Please sign in to comment.