Sha256: 90b4c0662fa28b04a257260cd0061970ec782d48247d1fe4af3301957b93ddfe
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
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 task :jenkins_fake do ENV['BUILD_NUMBER'] = '1234' Rake::Task[:'docker:jenkins'].invoke end 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 desc 'Update version of container' task :update do require 'picsolve_docker_builder/helpers/config_version_update' PicsolveDockerBuilder::Helpers::ConfigVersionUpdate.update_task end desc 'Cleanup databases/replication_controllers' task :cleanup do @docker_compose ||= PicsolveDockerBuilder::Composer::Composer.new stage = ENV['STAGE'] || 'CI' @docker_compose.stage = stage @docker_compose.cleanup end end
Version data entries
4 entries across 4 versions & 1 rubygems