shiplane_deployers_capistrano_docker 0.1.16 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d58b8ebde0545512f864762d99db918841ba162438269af06b5f00eb3f3cffe5
4
- data.tar.gz: b1fc470daa8ee2fbefb12e53cecb9758d00579704d3bcb81a03088810f8a9961
3
+ metadata.gz: 5ba273da7ca6cebe3e33bcf668c74b7cfd02540c643c7866b43a2058cd4df583
4
+ data.tar.gz: f243a0d07229455fa2cb2290cc394a9763bb33a3e8d38024b308c67c5c97619f
5
5
  SHA512:
6
- metadata.gz: 4d061b6b2b490e2bbd69d66ac676ab2c4a8967e6677112df9dfe3cd0639b514b63df7fdc45ff23450c5e955a87a9c1ab591152c3c53fcf0191e723e17484cfe5
7
- data.tar.gz: 9520530c73e2fc7842ab9e874059eb9a3ca6f96f433fbdae528ad4fee1abb57c8562fbc03e879b8d218a898e399257b1c0c550317ab354e3cb09d63b4973f4b6
6
+ metadata.gz: 40c3bfce35eae887258a4557ab88de48074ef5177129dc6fc2d17bd2e8a6109cce2e08b732060f5fbe00dadbe6263fb71b5376bbb243849a93fed0c1618aae6b
7
+ data.tar.gz: c45b6d6f9309b3d3fbad2fac0f6aab7667b58c65dae59d427e72650f50bb21791e6200c58595e51b139a990faa4dc7fe332bfde800a712331235b30297869798
@@ -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.16"
6
+ VERSION = "0.2.4"
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.16
4
+ version: 0.2.4
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: 2021-01-26 00:00:00.000000000 Z
11
+ date: 2021-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -102,13 +102,13 @@ files:
102
102
  - lib/capistrano/shiplane_deployers_capistrano_docker.rb
103
103
  - lib/capistrano/shiplane_deployers_capistrano_docker/version.rb
104
104
  - lib/capistrano/tasks/deployer.rake
105
- - lib/capistrano/tasks/dockerhub.rake
105
+ - lib/capistrano/tasks/docker_repo.rake
106
106
  - lib/shiplane/deployers/capistrano_docker/version.rb
107
107
  homepage: https://github.com/kirillian/shiplane
108
108
  licenses:
109
109
  - MIT
110
110
  metadata: {}
111
- post_install_message:
111
+ post_install_message:
112
112
  rdoc_options: []
113
113
  require_paths:
114
114
  - lib
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubygems_version: 3.0.3
127
- signing_key:
127
+ signing_key:
128
128
  specification_version: 4
129
129
  summary: A toolbox for converting developer docker-compose files into production-ready
130
130
  images.