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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/rake_docker/task_sets/all.rb +2 -0
- data/lib/rake_docker/tasks.rb +1 -0
- data/lib/rake_docker/tasks/build.rb +1 -1
- data/lib/rake_docker/tasks/publish.rb +24 -0
- data/lib/rake_docker/version.rb +1 -1
- data/rake_docker.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1969fee5725b969fdbc12e8b3f32b6dba56959f7d3665cbd744449725d07cd1
|
4
|
+
data.tar.gz: 4d8459e9fb3160ceb4b7a51c12504c0ed924254cfc861e3b19cf582731a0a7c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c11016b66f112cdf2ab0c946a2fd9cb293adb0e52125b531e64bdfaee6dec976178c1d5f030cae0afc1436196cd2ad8cbc7e9616dd82b3a6f401ec1c4674f75
|
7
|
+
data.tar.gz: 8c8f283ff853b7b428381630a0532eb1d707b77fe5b93dad517d0e55e3e635242bcc07e26c300b3aa283371ddea3081b9684b1df365cbe13ed441fd312bdcc09
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_docker (1.
|
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.
|
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.
|
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
|
data/lib/rake_docker/tasks.rb
CHANGED
@@ -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
|
data/lib/rake_docker/version.rb
CHANGED
data/rake_docker.gemspec
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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:
|
242
|
+
version: 1.3.1
|
242
243
|
requirements: []
|
243
244
|
rubygems_version: 3.0.1
|
244
245
|
signing_key:
|