dwyl / learn-travis

:sunglasses: A quick Travis CI (Continuous Integration) Tutorial for Node.js developers
MIT License
1.25k stars 352 forks source link

Using Travis-CI for Continuous Delivery with Edeliver & Destillery #22

Open nelsonic opened 7 years ago

nelsonic commented 7 years ago
nelsonic commented 6 years ago
Connection timed out during banner exchange
Failed to detect generated release at
root@213.168.248.157:/home/ubuntu/hello_world_edeliver/builds

Please set RELEASE_DIR in the config file to fix that,
or check that the APP variable is set correctly.

Appears to be the same issue as: https://elixirforum.com/t/elixir-deployment-problem/4542

nelsonic commented 6 years ago

Without any changes it worked the next time I ran it ... image Would prefer to understand why! but going to ride the wave for now and question it later!

nelsonic commented 6 years ago

https://scurker.com/automated-deploys-with-travis >> 404 image

nelsonic commented 6 years ago

Install:

sudo apt-get install ruby-full -y
sudo gem install travis

image Success: image

touch .travis.yml && travis encrypt-file ~/.ssh/deploy_key --add

if you see:

not logged in - try running travis login --org

Login to your GitHub in the CLI:

image

nelsonic commented 6 years ago

https://travis-ci.org/nelsonic/hello_world_edeliver/builds/258721596#L678 image

elixir failed with exit status 255

see: https://github.com/edeliver/edeliver/issues/127

nelsonic commented 6 years ago

https://stackoverflow.com/questions/1405324/how-to-create-a-bash-script-to-check-the-ssh-connection

ssh -q ubuntu@213.168.248.157 exit && echo $?

image

nelsonic commented 6 years ago

https://travis-ci.org/nelsonic/hello_world_edeliver/builds/258732237#L722 image

The authenticity of host '213.168.248.157 (213.168.248.157)' can't be established.
ECDSA key fingerprint is 3e:0d:6a:fd:2c:0f:1a:bb:55:8b:28:e6:64:84:10:02.
Are you sure you want to continue connecting (yes/no)? 
nelsonic commented 6 years ago

https://superuser.com/questions/125324/how-can-i-avoid-sshs-host-verification-for-known-hosts

ssh -o "StrictHostKeyChecking no" -q ubuntu@213.168.248.157 exit && echo $?
nelsonic commented 6 years ago

still getting: https://travis-ci.org/nelsonic/hello_world_edeliver/builds/258742386#L802 image

nelsonic commented 6 years ago

https://travis-ci.org/nelsonic/hello_world_edeliver/builds/258753539#L539 image

The command "openssl aes-256-cbc -K $encrypted_78685c75019b_key -iv $encrypted_78685c75019b_iv -in deploy_key.enc -out ~\/.ssh/deploy_key -d" failed and exited with 1 during .
nelsonic commented 6 years ago

read through: https://docs.travis-ci.com/user/encrypting-files/ not v. insightful as to the error ... 😞

nelsonic commented 6 years ago

Boom! https://travis-ci.org/nelsonic/hello_world_edeliver/builds/258758192#L1482 🎉 😂 image

nelsonic commented 6 years ago

This is still relevant to a "production" deploy. But I think we nearly have a much better way of doing this ... #ACID 😉