rake_docker 1.1.0 → 1.2.0.pre.1

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: 14aff3ba44cfb6918ce87a0c26e219fae7d3463d2ade2972073960502d63035f
4
- data.tar.gz: 6742faf9e45b09c3f230d1e5b5626902663487f3917237ab4b86d0408e7c5e03
3
+ metadata.gz: e1969fee5725b969fdbc12e8b3f32b6dba56959f7d3665cbd744449725d07cd1
4
+ data.tar.gz: 4d8459e9fb3160ceb4b7a51c12504c0ed924254cfc861e3b19cf582731a0a7c3
5
5
  SHA512:
6
- metadata.gz: d1c6040d66e71a05eb35f99f746a83d37bf75750c08b4f77ec7e299ec4dfc22d07707a14d441e6d53886613d46ea5da6f0f93a8b7eb3039c21de92167ecbc609
7
- data.tar.gz: 992102c8f03925c417faba953b727b3b9bf788cb710c3fece00b98865993d0a8aa1ad5c50c8503bfe62c9266d52b69816e5448d4709c015e8ae79490c9607d3a
6
+ metadata.gz: 1c11016b66f112cdf2ab0c946a2fd9cb293adb0e52125b531e64bdfaee6dec976178c1d5f030cae0afc1436196cd2ad8cbc7e9616dd82b3a6f401ec1c4674f75
7
+ data.tar.gz: 8c8f283ff853b7b428381630a0532eb1d707b77fe5b93dad517d0e55e3e635242bcc07e26c300b3aa283371ddea3081b9684b1df365cbe13ed441fd312bdcc09
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_docker (1.1.0)
4
+ rake_docker (1.2.0.pre.1)
5
5
  aws-sdk-ecr (~> 1.2)
6
6
  colored2 (~> 3.1)
7
7
  docker-api (~> 1.34)
8
- rake_factory (~> 0.15)
8
+ rake_factory (~> 0.17)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
@@ -44,7 +44,7 @@ GEM
44
44
  minitest (5.14.0)
45
45
  multi_json (1.14.1)
46
46
  rake (13.0.1)
47
- rake_factory (0.15.0)
47
+ rake_factory (0.17.0)
48
48
  activesupport (~> 5.2)
49
49
  rake (~> 13.0)
50
50
  rspec (3.9.0)
@@ -30,12 +30,14 @@ module RakeDocker
30
30
  parameter :build_task_name, default: :build
31
31
  parameter :tag_task_name, default: :tag
32
32
  parameter :push_task_name, default: :push
33
+ parameter :publish_task_name, default: :publish
33
34
 
34
35
  task Tasks::Clean, name: ->(ts) { ts.clean_task_name }
35
36
  task Tasks::Prepare, name: ->(ts) { ts.prepare_task_name }
36
37
  task Tasks::Build, name: ->(ts) { ts.build_task_name }
37
38
  task Tasks::Tag, name: ->(ts) { ts.tag_task_name }
38
39
  task Tasks::Push, name: ->(ts) { ts.push_task_name }
40
+ task Tasks::Publish, name: ->(ts) { ts.publish_task_name }
39
41
  end
40
42
  end
41
43
  end
@@ -3,3 +3,4 @@ require_relative 'tasks/prepare'
3
3
  require_relative 'tasks/build'
4
4
  require_relative 'tasks/tag'
5
5
  require_relative 'tasks/push'
6
+ require_relative 'tasks/publish'
@@ -24,7 +24,7 @@ module RakeDocker
24
24
 
25
25
  parameter :work_directory, :required => true
26
26
 
27
- parameter :prepare_task_name, :default => :prepare
27
+ parameter :prepare_task_name, default: :prepare
28
28
 
29
29
  action do |t|
30
30
  Docker.authenticate!(t.credentials) if t.credentials
@@ -0,0 +1,24 @@
1
+ require 'rake_factory'
2
+
3
+ module RakeDocker
4
+ module Tasks
5
+ class Publish < RakeFactory::Task
6
+ default_name :publish
7
+ default_description ->(t) { "Publish #{t.image_name} image" }
8
+
9
+ parameter :image_name
10
+
11
+ parameter :clean_task_name, default: :clean
12
+ parameter :build_task_name, default: :build
13
+ parameter :tag_task_name, default: :tag
14
+ parameter :push_task_name, default: :push
15
+
16
+ action do |t, args|
17
+ Rake::Task[t.scope.path_with_task_name(t.clean_task_name)].invoke(*args)
18
+ Rake::Task[t.scope.path_with_task_name(t.build_task_name)].invoke(*args)
19
+ Rake::Task[t.scope.path_with_task_name(t.tag_task_name)].invoke(*args)
20
+ Rake::Task[t.scope.path_with_task_name(t.push_task_name)].invoke(*args)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module RakeDocker
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0.pre.1'
3
3
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.required_ruby_version = '>= 2.6'
25
25
 
26
26
  spec.add_dependency 'docker-api', '~> 1.34'
27
- spec.add_dependency 'rake_factory', '~> 0.15'
27
+ spec.add_dependency 'rake_factory', '~> 0.17'
28
28
  spec.add_dependency 'aws-sdk-ecr', '~> 1.2'
29
29
  spec.add_dependency 'colored2', '~> 3.1'
30
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.15'
33
+ version: '0.17'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.15'
40
+ version: '0.17'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: aws-sdk-ecr
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -210,6 +210,7 @@ files:
210
210
  - lib/rake_docker/tasks/build.rb
211
211
  - lib/rake_docker/tasks/clean.rb
212
212
  - lib/rake_docker/tasks/prepare.rb
213
+ - lib/rake_docker/tasks/publish.rb
213
214
  - lib/rake_docker/tasks/push.rb
214
215
  - lib/rake_docker/tasks/tag.rb
215
216
  - lib/rake_docker/version.rb
@@ -236,9 +237,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
237
  version: '2.6'
237
238
  required_rubygems_version: !ruby/object:Gem::Requirement
238
239
  requirements:
239
- - - ">="
240
+ - - ">"
240
241
  - !ruby/object:Gem::Version
241
- version: '0'
242
+ version: 1.3.1
242
243
  requirements: []
243
244
  rubygems_version: 3.0.1
244
245
  signing_key: