Sha256: f3d5d4104ba8ded89f4eeb7134c1a4e89beaa25eb184e9662c5a9bc307d830c0

Contents?: true

Size: 559 Bytes

Versions: 17

Compression:

Stored size: 559 Bytes

Contents

DOCKER_REPO = "bmconseil/rest-ftp-daemon"

desc "Build docker image from latest tag"

task :dockerize => [] do
  version     =  `git describe --tags`.strip
  version 	  += "-dev"

  puts
  puts "* build [#{version}]"
  # sh "docker build --build-arg GEM_VERSION=#{version} . -t '#{DOCKER_REPO}:#{version}' -t '#{DOCKER_REPO}:latest'"
  sh "docker build . -t '#{DOCKER_REPO}:#{version}' -t '#{DOCKER_REPO}:latest'"

  puts
  puts "* push to [#{DOCKER_REPO}]"
    sh "docker push #{DOCKER_REPO}:#{version}"
    sh "docker push #{DOCKER_REPO}:latest"
  puts
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rest-ftp-daemon-1.1.1 lib/tasks/dockerize.rake
rest-ftp-daemon-1.1.0 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.15 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.14 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.13 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.12 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.11 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.10 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.9 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.8 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.7 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.6 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.5 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.4 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.3 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.2 lib/tasks/dockerize.rake
rest-ftp-daemon-1.0.1 lib/tasks/dockerize.rake