capistrano-docker-compose 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63f05415365aec9658b68807764c09c84d37fc0a
|
4
|
+
data.tar.gz: 3e53240f770d534d5f00c7891c9bdb0897077227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c3ad3309267609ffda2ef36b99837ca512337a70d19c12d403a1a4d5442155949971fe4f12ec67c0c16069033b69964b3065f6e4a3d13b4644c6f3a63783be
|
7
|
+
data.tar.gz: a797edcc2a1eeb7c75c29fc18edf0605dd962a538e227a42c374b7d6e12547375a81c1c4347c116b6e03b70738c7afb92703d1d32c59abb65e07598d26a0e278
|
@@ -7,8 +7,6 @@ end
|
|
7
7
|
|
8
8
|
namespace :deploy do
|
9
9
|
|
10
|
-
set :previous_release_path, nil
|
11
|
-
|
12
10
|
task :pull_images do
|
13
11
|
on roles(fetch(:docker_compose_roles)) do
|
14
12
|
within release_path do
|
@@ -52,6 +50,7 @@ namespace :deploy do
|
|
52
50
|
end
|
53
51
|
|
54
52
|
task :purge_failed_containers do
|
53
|
+
set :cap_docker_compose_failed, true
|
55
54
|
on roles(fetch(:docker_compose_roles)) do
|
56
55
|
within release_path do
|
57
56
|
execute :'docker-compose', 'down'
|
@@ -83,14 +82,16 @@ namespace :deploy do
|
|
83
82
|
after :updating, :pull_images
|
84
83
|
after :updating, :start_containers
|
85
84
|
before :publishing, :claim_files_by_container
|
86
|
-
before :failed, :
|
85
|
+
before :failed, :claim_files_by_container
|
86
|
+
after :failed, :purge_failed_containers
|
87
87
|
after :failed, :cleanup_rollback
|
88
|
-
after :finished, :purge_old_containers
|
88
|
+
after :finished, :purge_old_containers unless fetch(:cap_docker_compose_failed, false)
|
89
89
|
|
90
90
|
end
|
91
91
|
|
92
92
|
namespace :load do
|
93
93
|
task :defaults do
|
94
94
|
set :docker_compose_roles, fetch(:docker_compose_roles, :all)
|
95
|
+
set :previous_release_path, nil
|
95
96
|
end
|
96
97
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-docker-compose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ain Tohvri
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|