lib/tasks/compose.rake in picsolve_docker_builder-0.1.1 vs lib/tasks/compose.rake in picsolve_docker_builder-0.2.0
- old
+ new
@@ -1,8 +1,9 @@
require 'picsolve_docker_builder/composer/composer'
namespace :compose do
+ desc 'Deploy to composition - jenkins task'
task :jenkins do
fail 'Not in a Jenkins environment' \
if ENV['BUILD_NUMBER'].nil?
Rake::Task[:'docker:deploy'].invoke
end
@@ -15,9 +16,10 @@
task :prepare do
@docker_compose ||= PicsolveDockerBuilder::Composer::Composer.new
@docker_compose.prepare
end
+ desc 'Deploy to composition'
task deploy: :prepare do
stage = ENV['STAGE'] || 'CI'
@docker_compose.stage = stage
@docker_compose.deploy
end