Sha256: bdc9558d999c420ed554c998ea83683c385f87796a4a1c665663618017f701fc

Contents?: true

Size: 434 Bytes

Versions: 13

Compression:

Stored size: 434 Bytes

Contents

namespace :docker do
  task :jenkins do
    fail 'Not in a Jenkins environment' \
      if ENV['BUILD_NUMBER'].nil?
    Rake::Task[:'docker:push'].invoke
  end

  task :jenkins_fake do
    ENV['BUILD_NUMBER'] = '1234'
    Rake::Task[:'docker:jenkins'].invoke
  end

  task build: :prepare do
    @docker_builder.build
  end

  task tag: :build do
    @docker_builder.tag
  end

  task push: :tag do
    @docker_builder.push
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
picsolve_docker_builder-0.5.5 lib/tasks/docker.rake
picsolve_docker_builder-0.5.4 lib/tasks/docker.rake
picsolve_docker_builder-0.5.3 lib/tasks/docker.rake
picsolve_docker_builder-0.5.2 lib/tasks/docker.rake
picsolve_docker_builder-0.5.1 lib/tasks/docker.rake
picsolve_docker_builder-0.5.0 lib/tasks/docker.rake
picsolve_docker_builder-0.4.0 lib/tasks/docker.rake
picsolve_docker_builder-0.3.2 lib/tasks/docker.rake
picsolve_docker_builder-0.3.1 lib/tasks/docker.rake
picsolve_docker_builder-0.3.0 lib/tasks/docker.rake
picsolve_docker_builder-0.2.0 lib/tasks/docker.rake
picsolve_docker_builder-0.1.1 lib/tasks/docker.rake
picsolve_docker_builder-0.1.0 lib/tasks/docker.rake