rake_docker 2.20.0.pre.5 → 2.20.0.pre.7

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: d67f889f032f2cc9c17e8d3e9ae3fe7e66c02ded29f8c0eae648028983211f80
4
- data.tar.gz: 8155859b3a205c834fe9f0db28e05371b21c961a1d46acd601897c9fc76361ba
3
+ metadata.gz: 2b1f782561548d3b4e7c49bec4c73d89cbe41ceda863cf66d31aa88f78571142
4
+ data.tar.gz: 26c6e1c22b4473f812a671b1f61d14299ce0d289d79e4a4e96189034119bf441
5
5
  SHA512:
6
- metadata.gz: e3a465b3d976e2bd19f2b02f16d9b99ff52d9a5130a0735cec764e47480f88a78aafe24fb371afda418e0e26b2a5b97804ec8b7cc506984ea2d46d7b34ebc924
7
- data.tar.gz: fe5982771ecee95a3969c2428a7c61768a3e67ec74120dd5f4b5605947384ef8b1031dc96dad5fdc6aca688e69b9f0fe17bbb38077f698be58d06ae8b0944a68
6
+ metadata.gz: ff0a2ad3e23c270caad1d1406f5a033bfbd277e5d46a6ef5cbbee52ee366a4242466a8e2089a3a4c7aca557278d7888b81bc281f3e62299d637560ac56861a49
7
+ data.tar.gz: c45a5cb0e016e6daa3ddf608ab6c7e1b62a1ce80961a4d6c6b38bd1aca26fdce910252a1fd630e30d9bb8c71a7c12de95432efb5ae78ced1f37dd76c03839075
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_docker (2.20.0.pre.5)
4
+ rake_docker (2.20.0.pre.7)
5
5
  aws-sdk-ecr (~> 1.2)
6
6
  colored2 (~> 3.1)
7
7
  docker-api (>= 1.34, < 3.0)
@@ -24,8 +24,8 @@ GEM
24
24
  public_suffix (>= 2.0.2, < 6.0)
25
25
  ast (2.4.2)
26
26
  aws-eventstream (1.2.0)
27
- aws-partitions (1.843.0)
28
- aws-sdk-core (3.185.1)
27
+ aws-partitions (1.845.0)
28
+ aws-sdk-core (3.186.0)
29
29
  aws-eventstream (~> 1, >= 1.0.2)
30
30
  aws-partitions (~> 1, >= 1.651.0)
31
31
  aws-sigv4 (~> 1.5)
@@ -72,7 +72,7 @@ GEM
72
72
  minitest (5.20.0)
73
73
  multi_json (1.15.0)
74
74
  mutex_m (0.1.2)
75
- octokit (6.1.1)
75
+ octokit (8.0.0)
76
76
  faraday (>= 1, < 3)
77
77
  sawyer (~> 0.9)
78
78
  open4 (1.3.4)
@@ -81,7 +81,7 @@ GEM
81
81
  ast (~> 2.4.1)
82
82
  racc
83
83
  public_suffix (5.0.3)
84
- racc (1.7.1)
84
+ racc (1.7.3)
85
85
  rainbow (3.1.1)
86
86
  rake (13.1.0)
87
87
  rake_circle_ci (0.11.0)
@@ -92,18 +92,18 @@ GEM
92
92
  rake_factory (0.32.0.pre.2)
93
93
  activesupport (>= 4)
94
94
  rake (~> 13.0)
95
- rake_git (0.1.0.pre.7)
95
+ rake_git (0.1.0.pre.9)
96
96
  colored2 (~> 3.1)
97
97
  git (~> 1.13, >= 1.13.2)
98
98
  rake_factory (= 0.32.0.pre.2)
99
- rake_git_crypt (0.1.0.pre.26)
99
+ rake_git_crypt (0.1.0.pre.28)
100
100
  colored2 (~> 3.1)
101
101
  rake_factory (= 0.32.0.pre.2)
102
102
  ruby_git_crypt (= 0.1.0.pre.2)
103
103
  ruby_gpg2 (~> 0.6)
104
- rake_github (0.11.0)
104
+ rake_github (0.13.0)
105
105
  colored2 (~> 3.1)
106
- octokit (>= 4.16, < 7.0)
106
+ octokit (>= 4.16, < 9.0)
107
107
  rake_factory (~> 0.23)
108
108
  sshkey (~> 2.0)
109
109
  rake_gpg (0.18.0)
data/README.md CHANGED
@@ -21,7 +21,31 @@ Or install it yourself as:
21
21
 
22
22
  ## Usage
23
23
 
24
- TODO: Write usage instructions here
24
+ To define tasks for managing a docker image:
25
+
26
+ ```ruby
27
+ RakeDocker.define_image_tasks(
28
+ image_name: 'my-image'
29
+ ) do |t|
30
+ t.work_directory = 'build/images'
31
+
32
+ t.copy_spec = [
33
+ 'src/my-image/Dockerfile',
34
+ 'src/my-image/start.sh'
35
+ ]
36
+
37
+ t.repository_name = 'my-image'
38
+ t.repository_url = 'my-org/my-image'
39
+
40
+ t.credentials = YAML.load_file(
41
+ 'config/secrets/dockerhub/credentials.yaml'
42
+ )
43
+
44
+ t.platform = 'linux/amd64'
45
+
46
+ t.tags = ['1.2.3', 'latest']
47
+ end
48
+ ```
25
49
 
26
50
  ## Development
27
51
 
data/Rakefile CHANGED
@@ -146,7 +146,7 @@ end
146
146
  RakeGithub.define_repository_tasks(
147
147
  namespace: :github,
148
148
  repository: 'infrablocks/rake_docker'
149
- ) do |t, args|
149
+ ) do |t|
150
150
  github_config =
151
151
  YAML.load_file('config/secrets/github/config.yaml')
152
152
 
@@ -157,8 +157,6 @@ RakeGithub.define_repository_tasks(
157
157
  public_key: File.read('config/secrets/ci/ssh.public')
158
158
  }
159
159
  ]
160
- t.branch_name = args.branch_name
161
- t.commit_message = args.commit_message
162
160
  end
163
161
 
164
162
  namespace :pipeline do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeDocker
4
- VERSION = '2.20.0.pre.5'
4
+ VERSION = '2.20.0.pre.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.20.0.pre.5
4
+ version: 2.20.0.pre.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-30 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr