shiplane_deployers_capistrano_docker 0.1.14 → 0.2.2

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
  SHA256:
3
- metadata.gz: 269d32e7a81b7f0a08215ad4d99135f2c50c079d6db19268473246201d0aadfa
4
- data.tar.gz: ce30d3f3f3d7c901584ba67b26237a3402263d3011314c7ee156fb19a0f229e7
3
+ metadata.gz: 853944ab40cde8bc2317a79d7505301c367aa00e856d5e8a4f1b3c47832dd47f
4
+ data.tar.gz: 111727812edf14f5fb2b59ae1adb1d8c6f24070dabfa5f7f3b83cf548ddd4f0b
5
5
  SHA512:
6
- metadata.gz: 88b3dc10f4125513c6508d9c2a275f5f7bd9c79c30abf9707960f9528a338f63cdc4dddac1e2337b4652d8ec8c90d65726a18f7c08e6b05d101d19c835401f1c
7
- data.tar.gz: c59499b89d002bcda81132b68f8c0b2214ccb5e9b1ded03e3f9580ed2279115f117950450e5b6d017188e63cf5602728f2dd9c4e02943454a3076b6cd21a7fca
6
+ metadata.gz: d2499b57b63730a3def9fd10ba58695210814147c16f407e7ae0d2d46a41cd3f1d5c8705af78cc8189c11d08b20077dc938db66729bbcfd3a59cd7cbf174648c
7
+ data.tar.gz: e00b535e0271d7d49230cf143b1b532cc275715c52fe4a0c32ed671d0359de4f053adbd9149a3b447faea216bdc2e7af29569b0f472a5e6ca0a2d366584e00b4
@@ -1,2 +1,2 @@
1
- load File.expand_path('../tasks/dockerhub.rake', __FILE__)
1
+ load File.expand_path('../tasks/docker_repo.rake', __FILE__)
2
2
  load File.expand_path('../tasks/deployer.rake', __FILE__)
@@ -1,18 +1,28 @@
1
1
  namespace :shiplane do
2
- task :login_to_dockerhub do
2
+ task :login_to_container_service do
3
3
  fetch(:shiplane_container_configurations).each do |name, config|
4
4
  roles = roles(config.fetch(:capistrano_role, :all)).map{|role| Shiplane::Host.new(role, env) }
5
5
  roles.each do |role|
6
6
  on role.capistrano_role do
7
- username = fetch(:shiplane_docker_registry_username)
8
- password = fetch(:shiplane_docker_registry_password)
9
- execute "echo '#{password}' | #{config.docker_command(role)} login --username #{username} --password-stdin"
7
+ command = [
8
+ 'echo',
9
+ "\"#{fetch(:shiplane_docker_registry_token)}\"",
10
+ '|',
11
+ config.docker_command(role),
12
+ 'login',
13
+ fetch(:shiplane_docker_registry_url, nil),
14
+ '--username',
15
+ fetch(:shiplane_docker_registry_username),
16
+ '--password-stdin',
17
+ ].compact.join(' ')
18
+
19
+ execute command
10
20
  end
11
21
  end
12
22
  end
13
23
  end
14
24
 
15
- task download_container: [:login_to_dockerhub] do
25
+ task download_container: [:login_to_container_service] do
16
26
  fetch(:shiplane_container_configurations).each do |name, config|
17
27
  roles = roles(config.fetch(:capistrano_role, :all)).map{|role| Shiplane::Host.new(role, env) }
18
28
  roles.each do |role|
@@ -3,7 +3,7 @@
3
3
  module Shiplane
4
4
  module Deployers
5
5
  module CapistranoDocker
6
- VERSION = "0.1.14"
6
+ VERSION = "0.2.2"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shiplane_deployers_capistrano_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Epperson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-03 00:00:00.000000000 Z
11
+ date: 2021-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -70,6 +70,26 @@ dependencies:
70
70
  - - "~>"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 1.0.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: gem-release
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 2.0.4
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.2.1
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 2.0.4
90
+ - - "~>"
91
+ - !ruby/object:Gem::Version
92
+ version: 2.2.1
73
93
  description: Converts docker-compose.yml files into images that can be uploaded to
74
94
  any docker image repository.
75
95
  email:
@@ -82,13 +102,13 @@ files:
82
102
  - lib/capistrano/shiplane_deployers_capistrano_docker.rb
83
103
  - lib/capistrano/shiplane_deployers_capistrano_docker/version.rb
84
104
  - lib/capistrano/tasks/deployer.rake
85
- - lib/capistrano/tasks/dockerhub.rake
105
+ - lib/capistrano/tasks/docker_repo.rake
86
106
  - lib/shiplane/deployers/capistrano_docker/version.rb
87
107
  homepage: https://github.com/kirillian/shiplane
88
108
  licenses:
89
109
  - MIT
90
110
  metadata: {}
91
- post_install_message:
111
+ post_install_message:
92
112
  rdoc_options: []
93
113
  require_paths:
94
114
  - lib
@@ -103,9 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
123
  - !ruby/object:Gem::Version
104
124
  version: '0'
105
125
  requirements: []
106
- rubyforge_project:
107
- rubygems_version: 2.7.7
108
- signing_key:
126
+ rubygems_version: 3.0.3
127
+ signing_key:
109
128
  specification_version: 4
110
129
  summary: A toolbox for converting developer docker-compose files into production-ready
111
130
  images.