Skip to content
Permalink
Browse files

remove all capistrano deploy and deploy everything via k8s now

  • Loading branch information...
dwradcliffe committed Jan 1, 2019
1 parent ef7cdff commit 36c6ef3f9bb69d01a2303251cf031721515ad53f
Showing with 4 additions and 144 deletions.
  1. +0 −1 .travis.yml
  2. +0 −15 Capfile
  3. +0 −3 Gemfile
  4. +0 −22 Gemfile.lock
  5. +0 −61 config/deploy.rb
  6. +0 −3 config/deploy/production.rb
  7. +1 −0 config/deploy/production/db-migrate.yaml.erb
  8. +0 −19 shipit.staging.yml
  9. +3 −20 shipit.yml
@@ -47,7 +47,6 @@ script:
- bundle exec rake rubocop
- bundle audit check
- brakeman -c config/brakeman.yml -o /dev/stdout
- bundle exec cap -T > /dev/null
- script/build_docker.sh

env:
15 Capfile

This file was deleted.

@@ -72,8 +72,5 @@ group :test do
end

group :development, :deploy do
gem 'capistrano', '~> 3.0', require: false
gem 'capistrano-rails', '~> 1.1', require: false
gem 'capistrano-bundler', '~> 1.1', require: false
gem 'kubernetes-deploy', '0.20.6', require: false
end
@@ -44,8 +44,6 @@ GEM
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
airbrussh (1.3.0)
sshkit (>= 1.6.1, != 1.7.0)
arel (9.0.0)
ast (2.4.0)
autoprefixer-rails (7.1.2.3)
@@ -63,17 +61,6 @@ GEM
msgpack (~> 1.0)
builder (3.2.3)
byebug (10.0.2)
capistrano (3.8.1)
airbrussh (>= 1.0.0)
i18n
rake (>= 10.0.0)
sshkit (>= 1.9.0)
capistrano-bundler (1.2.0)
capistrano (~> 3.1)
sshkit (~> 1.2)
capistrano-rails (1.3.0)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capybara (2.18.0)
addressable
mini_mime (>= 0.1.3)
@@ -249,9 +236,6 @@ GEM
msgpack (1.2.4)
multi_json (1.13.1)
multipart-post (2.0.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (5.0.2)
netrc (0.11.0)
newrelic_rpm (5.5.0.348)
nio4r (2.3.1)
@@ -366,9 +350,6 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sshkit (1.17.0)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
statsd-instrument (2.3.1)
thor (0.20.3)
thread_safe (0.3.6)
@@ -402,9 +383,6 @@ DEPENDENCIES
autoprefixer-rails
aws-sdk (~> 2.2)
bootsnap
capistrano (~> 3.0)
capistrano-bundler (~> 1.1)
capistrano-rails (~> 1.1)
capybara (~> 2.18)
clearance
clearance-deprecated_password_strategies

This file was deleted.

This file was deleted.

This file was deleted.

@@ -8,32 +8,15 @@ dependencies:

deploy:
override:
- bundle exec kubernetes-deploy rubygems-production rubygems --template-dir config/deploy/production --bindings=environment=$ENVIRONMENT
- bundle exec cap $ENVIRONMENT deploy
- bundle exec kubernetes-deploy rubygems-$ENVIRONMENT rubygems --template-dir config/deploy/$ENVIRONMENT --bindings=environment=$ENVIRONMENT

rollback:
override:
- bundle exec kubernetes-deploy rubygems-production rubygems --template-dir config/deploy/production --bindings=environment=$ENVIRONMENT
- bundle exec cap $ENVIRONMENT deploy:rollback
- bundle exec kubernetes-deploy rubygems-$ENVIRONMENT rubygems --template-dir config/deploy/$ENVIRONMENT --bindings=environment=$ENVIRONMENT

tasks:
restart:
action: Restart application
description: Trigger the restart of both unicorn and background workers
steps:
- bundle exec cap $ENVIRONMENT deploy:restart
enable_maintenance:
action: Enable maintenance mode
description: Disable access to the rails app and show the maintenance page
steps:
- bundle exec cap $ENVIRONMENT maintenance:enable
disable_maintenance:
action: Disable maintenance mode
description: Enable access to the rails app and hide the maintenance page
steps:
- bundle exec cap $ENVIRONMENT maintenance:disable
clear_cache:
action: Clear cache
description: Flushes memcached using rails cache clear
steps:
- bundle exec cap $ENVIRONMENT memcached:flush
- bundle exec kubernetes-restart rubygems-$ENVIRONMENT rubygems

0 comments on commit 36c6ef3

Please sign in to comment.
You can’t perform that action at this time.