docker_sigh 0.1.0 → 0.1.1
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 +4 -4
- data/lib/docker_sigh.rb +7 -7
- data/lib/docker_sigh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3dd0cd0ad702fa1082696de78c10bc678ab2013a
|
|
4
|
+
data.tar.gz: 748a13bd99e39d377459d48b4c96587f0ae6ed74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7d8609271bf05b10e9edf64f62ae31bc05cb7d20c8e912897624cb4c4fea790067a0678882a58d594c1751af818efaa283b2baa8c4d9c2a840b3ced0212c7e9
|
|
7
|
+
data.tar.gz: 86261569bc0c4fabed2add44530266e158b7aec95e3c32c55f828aa5f9fd000130bdd42a32482cf3f6032ae35d2e4ba2f2fc020e0ba35e0d861c65d52b997959
|
data/lib/docker_sigh.rb
CHANGED
|
@@ -66,14 +66,14 @@ module DockerSigh
|
|
|
66
66
|
LOGGER.debug "Beginning 'push' task."
|
|
67
67
|
Dir.chdir(opts[:repository_root]) do
|
|
68
68
|
name = opts[:container_name]
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
raise "failed to push with branch tag" unless ret
|
|
74
|
-
ret = sh "docker push #{name}:#{hash}"
|
|
75
|
-
raise "failed to push with hash tag" unless ret
|
|
69
|
+
|
|
70
|
+
[ Util::repo_current_commit(opts),
|
|
71
|
+
Util::tag_from_branch_name(opts),
|
|
72
|
+
Util::repo_current_tags(opts) ].flatten.each do |tag|
|
|
76
73
|
|
|
74
|
+
ret = sh "docker push #{name}:#{tag}"
|
|
75
|
+
raise "failed to push with tag '#{tag}'" unless ret
|
|
76
|
+
end
|
|
77
77
|
end
|
|
78
78
|
LOGGER.debug "Ending 'push' task."
|
|
79
79
|
end
|
data/lib/docker_sigh/version.rb
CHANGED