Class: Kubes::Docker::Strategy::Build::Gcloud

Inherits:
Base
  • Object
show all
Defined in:
lib/kubes/docker/strategy/build/gcloud.rb

Instance Method Summary collapse

Methods inherited from Base

#check_dockerfile!, #initialize, #run

Methods included from Hooks::Concern

#run_hooks

Methods included from ImageName

#args, #custom, #default, #generate_name, #git_sha, #image_name, #image_state_path, #read_image_name, #repo, #reserve_image_name, #store_image_name

Methods included from Util::Time

#pretty_time

Methods included from Util::Sh

#sh, #sh_capture

Methods included from Logging

#logger

Constructor Details

This class inherits a constructor from Kubes::Docker::Strategy::Build::Base

Instance Method Details

#performObject



3
4
5
6
7
8
# File 'lib/kubes/docker/strategy/build/gcloud.rb', line 3

def perform
  command = "gcloud builds submit --tag #{@@image_name}"
  run_hooks("docker.rb", name: "build") do
    sh(command)
  end
end