lib/vidar/cli.rb in vidar-0.1.4 vs lib/vidar/cli.rb in vidar-0.1.5
- old
+ new
@@ -82,9 +82,18 @@
Log.info "Error getting deploy hook template: #{error}"
exit(1)
end
end
+ desc "release", "Builds and publishes docker images"
+ def release
+ Log.info "Release #{options[:image]}:#{options[:revision]}"
+ pull
+ build
+ cache
+ publish
+ end
+
desc "monitor_deploy_status", "Checks is deployment has finished and sends post-deploy notification"
def monitor_deploy_status
Log.info "Current cluster: #{Config.get(:cluster)} ###"
Log.info "Checking is all containers on #{Config.get(:cluster)} in #{Config.get(:namespace)} are ready..."