Commit 4c2059a9 authored by Cool Fire's avatar Cool Fire

Merge branch 'development' into 'master'

Do deployment less silly

See merge request !5
parents 8082ab70 ed22bc5d
Pipeline #360 passed with stages
in 5 minutes and 33 seconds
......@@ -48,57 +48,21 @@ rack_test:
- bundle install
- touch .current
- ruby test.rb
pull_code:
deploy_to_production:
stage: deploy
image: ubuntu:16.04
only:
- master
script:
- apt-get update
- apt-get install -y -qq ruby
- 'which ssh-agent || (apt-get install -y -qq openssh-client)'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- ruby deployment/create_config.rb > config.yaml
- bash deployment/pull_code.sh
set_git_tag:
stage: deploy
image: ubuntu:16.04
only:
- master
script:
- apt-get update
- 'which ssh-agent || (apt-get install -y -qq openssh-client)'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- bash deployment/set_git_tag.sh
populate_config:
stage: deploy
image: ubuntu:16.04
only:
- master
script:
- apt-get update
- apt-get install ruby
- ruby deployment/create_config.rb > config.yaml
- 'which ssh-agent || (apt-get install -y -qq openssh-client)'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- bash deployment/populate_config.sh
restart_application:
stage: deploy
image: ubuntu:16.04
only:
- master
script:
- apt-get update
- 'which ssh-agent || (apt-get install -y -qq openssh-client)'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- bash deployment/restart_application.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment