docker_deploy.rb in lex-conditioner-0.2.3 vs docker_deploy.rb in lex-conditioner-0.2.5
- old
+ new
@@ -1,12 +1,13 @@
#!/usr/bin/env ruby
-version = Legion::Extensions::Conditioner::VERSION
name = 'conditioner'
-
require "./lib/legion/extensions/#{name}/version"
+version = Legion::Extensions::Conditioner::VERSION
+
puts "Building docker image for Legion v#{version}"
system("docker build --tag legionio/lex-#{name}:v#{version} .")
puts 'Pushing to hub.docker.com'
system("docker push legionio/lex-#{name}:v#{version}")
+system("docker tag legionio/lex-#{name}:v#{version} legionio/lex-#{name}:latest")
system("docker push legionio/lex-#{name}:latest")
puts 'completed'