docker_sigh 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: d78e6cd74497a102f6fb6acbc47e378f7fe0c0ec
4
- data.tar.gz: 3c65de37d31737ed2a01ad47014e5bbf5b863d5b
3
+ metadata.gz: 3dd0cd0ad702fa1082696de78c10bc678ab2013a
4
+ data.tar.gz: 748a13bd99e39d377459d48b4c96587f0ae6ed74
5
5
  SHA512:
6
- metadata.gz: 3fdd68b0d1e2e1b0e99033e7307f929c478be7df68b921a8188d8359268df25d331af9f4e51c67c91f874b157ffd9b77cc458a9c8a456825de3f531c05cfdbbe
7
- data.tar.gz: 7332cac90fb68f2a636535fe90c7132d5965218ec1e72780879a64b1411b5f47d289b27491b4e0ec8b9480b2748adedf9e690f8872bdf49f1bf43bc613c90166
6
+ metadata.gz: b7d8609271bf05b10e9edf64f62ae31bc05cb7d20c8e912897624cb4c4fea790067a0678882a58d594c1751af818efaa283b2baa8c4d9c2a840b3ced0212c7e9
7
+ data.tar.gz: 86261569bc0c4fabed2add44530266e158b7aec95e3c32c55f828aa5f9fd000130bdd42a32482cf3f6032ae35d2e4ba2f2fc020e0ba35e0d861c65d52b997959
@@ -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
- hash = Util::repo_current_commit(opts)
70
- branch = Util::tag_from_branch_name(opts)
71
-
72
- ret = sh "docker push #{name}:#{branch}"
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
@@ -1,3 +1,3 @@
1
1
  module DockerSigh
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_sigh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Ropple