shiplane_deployers_capistrano_docker 0.1.17 → 0.1.18

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: 364e58192cbe9634554f60ebc8de29ea1e735860cf8a9ccb75f9e39dbed28141
4
- data.tar.gz: ab0c613ffc3941a69abdb3cf9d7281f09bedb240fb9946dc8fb4926af9da750e
3
+ metadata.gz: e780fd8753c445c93d3e8312bece22f694b4a7f82ee0b51692e0f40b8635300e
4
+ data.tar.gz: 2395dabe4c5a062bc2d2564535d4e1b83cef242b865775c668bb32bab025a2f9
5
5
  SHA512:
6
- metadata.gz: 5b232cdb32786618f1d77b5c2fae9bd778224cb7a2e19f286bd91d43e8ac7997709dc23728a4b236d2500bdb57ada5f08f8b12155847c992231786ecc22ee2f3
7
- data.tar.gz: 8c5656831c42e46014a0dab0765929b50b02d4c0ad5def33233b0cfa77f78d5b79d8cbfa333466aa6444971294bb0e3c588a34c6e7e2e354611cce8f95070d79
6
+ metadata.gz: abd83520b1624c3a3b7e0ded6c78ddb40798ab05f92225571beab2622dab9a0892ee8deb0c288e64997ed5effff0c7b8d6cfeee26ef8b9df6811da3198c8dd4b
7
+ data.tar.gz: 6105ad73c96323c16e2b166f1ac5587b43e256ef73740bb0d211c207ea44030f4b8d026875d009371594b1718691899c967511b6489b3ae344e5ba4e7585bbf5
@@ -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.17"
6
+ VERSION = "0.1.18"
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.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Epperson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-26 00:00:00.000000000 Z
11
+ date: 2021-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -102,7 +102,7 @@ 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: