plugins/gcloud/lib/samson_gcloud/image_builder.rb
# NOTE: not using executor since it does not return output
not using executor since it does not return output
not using executor since it does not return output
def image_exists_in_gcloud?(repo_digest)
        image, digest = repo_digest.split('@')
        output = Samson::CommandExecutor.execute(
          "gcloud", "container", "images", "list-tags", image,
          "--format", "get(digest)", "--filter", "digest=#{digest}", *SamsonGcloud.cli_options,
          timeout: 10
        ).last
        output.strip == digest
      end
def image_exists_in_gcloud? ( repo_digest ) image , digest = repo_digest . split ( '@' ) output = Samson :: CommandExecutor . execute ( "gcloud" , "container" , "images" , "list-tags" , image , "--format" , "get(digest)" , "--filter" , "digest=#{digest}" , * SamsonGcloud . cli_options , timeout : 10 ) . last output . strip == digest end
NOTE: not using executor since it does not return output
NOTE : not using executor since it does not return output
repo_digest