-
-
Save unkray/43a143ba51c370489f8ced4d9c6280f9 to your computer and use it in GitHub Desktop.
Revisions
-
unkray revised this gist
Dec 14, 2020 . 1 changed file with 3 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ # Take valid private key for $SSH_PRIVATE_KEY variable to the agent store # cat .ssh/id_rsa | base64 -w0 >> ./deploy_key image: ruby:2.6 stages: @@ -11,10 +14,6 @@ deploy_testing: script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 --decode) - gem install capistrano - cap testing deploy @@ -31,10 +30,6 @@ deploy: script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 --decode) - gem install capistrano - cap main deploy -
unkray revised this gist
Dec 1, 2020 . 1 changed file with 14 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ image: ruby:2.6 stages: - deploy deploy_testing: environment: name: testing url: http://testing.host.com/ stage: deploy script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) @@ -17,14 +17,16 @@ deploy_staging: # cat .ssh/id_rsa | base64 -w0 - ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 --decode) - gem install capistrano - cap testing deploy only: - testing tags: - deploy_testing deploy: environment: name: main url: http://main.host.com/ stage: deploy script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) @@ -35,6 +37,8 @@ deploy: # cat .ssh/id_rsa | base64 -w0 - ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 --decode) - gem install capistrano - cap main deploy only: - main tags: - deploy -
unkray revised this gist
Nov 26, 2020 . 1 changed file with 15 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,28 +1,39 @@ image: ruby:2.4 stages: - deploy deploy_staging: environment: name: staging url: http://staging.host.com/ stage: deploy script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store # - ssh-add <(echo -e "$SSH_PRIVATE_KEY") # Take valid private key # cat .ssh/id_rsa | base64 -w0 - ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 --decode) - gem install capistrano - cap staging deploy only: - develop deploy: environment: name: production url: http://production.host.com/ stage: deploy script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store # - ssh-add <(echo -e "$SSH_PRIVATE_KEY") # Take valid private key # cat .ssh/id_rsa | base64 -w0 - ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 --decode) - gem install capistrano - cap production deploy only: -
unkray revised this gist
Nov 26, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,6 @@ deploy: # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store - ssh-add <(echo -e “$SSH_PRIVATE_KEY”) - gem install capistrano - cap production deploy only: - master -
shaliko created this gist
Aug 21, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ image: ruby:2.4 stages: - deploy deploy_staging: environment: staging stage: deploy script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store - ssh-add <(echo -e “$SSH_PRIVATE_KEY”) - gem install capistrano - cap staging deploy only: - develop deploy: environment: production stage: deploy script: - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) - eval $(ssh-agent -s) # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store - ssh-add <(echo -e “$SSH_PRIVATE_KEY”) - gem install capistrano - cap staging deploy only: - master