containerci 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/lib/containerci/version.rb +1 -1
- data/lib/containerci.rb +9 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94e5bf6189f0ae386ac11d97d41fe8c8be361450
|
4
|
+
data.tar.gz: c49422e41c29ee310e6f5038efba80e34cc46314
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4bc64245761f5f71cdc5c427dd25a8963760bc58e163cf2282fe0d3b37ac58877ea748a438992ba70a44b306f09120a47aad8ba032d4a48abef5b524356ce7d
|
7
|
+
data.tar.gz: 5e078e73db836e051612c961ac61f6f42122443958eb4d1ca64e0d69a66e707ee91b40f0aa2fdbc05ee2bc96232923e987273bf4cc90a274eaa2b100fbd7dd11
|
data/ChangeLog.md
CHANGED
data/lib/containerci/version.rb
CHANGED
data/lib/containerci.rb
CHANGED
@@ -33,6 +33,12 @@ module ContainerCI
|
|
33
33
|
@next_version ||= `sh -c 'TZ=UTC date +%Y-%m-%d-%H%M'`.chomp
|
34
34
|
end
|
35
35
|
|
36
|
+
def docker_push_cmds(version)
|
37
|
+
'false; ' \
|
38
|
+
'until [ $? -eq 0 ]; do ' \
|
39
|
+
"docker push #{USER}/#{PROJECT_NAME}:#{version} < /dev/null; done"
|
40
|
+
end
|
41
|
+
|
36
42
|
def define
|
37
43
|
@dsl.define_task(:update_github_project) do
|
38
44
|
puts "pulling #{GITHUB_PROJECT}..."
|
@@ -109,8 +115,9 @@ module ContainerCI
|
|
109
115
|
:docker_tag])
|
110
116
|
|
111
117
|
@dsl.define_task(:docker_push) do
|
112
|
-
|
113
|
-
sh
|
118
|
+
|
119
|
+
sh docker_push_cmds('latest')
|
120
|
+
sh docker_push_cmds(current_version)
|
114
121
|
end
|
115
122
|
|
116
123
|
@dsl.define_task(after_test_success:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: containerci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.4.
|
109
|
+
rubygems_version: 2.4.3
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Rakefile toolkit for creating automated builds for Docker containers.
|