Method: DG::Docker.deploy_stages

Defined in:
lib/dg/docker.rb

.deploy_stagesObject



59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/dg/docker.rb', line 59

def deploy_stages
  @@deploy_stages_cached ||=
    begin
      generate_fig_yaml
      branch = ENV['GIT_BRANCH'] ||
        `git symbolic-ref --short -q HEAD`.strip

      run_with_output(
        %(docker run --entrypoint=ruby -e GIT_BRANCH=$GIT_BRANCH #{git_image_name} /u/app/deploy-to.rb), capture = true
      ).strip.split(',')
    end
end