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