To disable local builds set: ``` builder: local: false remote: ssh://docker@docker-builder ```
14 lines
479 B
Ruby
14 lines
479 B
Ruby
class Kamal::Configuration::Validator::Builder < Kamal::Configuration::Validator
|
|
def validate!
|
|
super
|
|
|
|
if config["cache"] && config["cache"]["type"]
|
|
error "Invalid cache type: #{config["cache"]["type"]}" unless [ "gha", "registry" ].include?(config["cache"]["type"])
|
|
end
|
|
|
|
error "Builder arch not set" unless config["arch"].present?
|
|
|
|
error "Cannot disable local builds, no remote is set" if config["local"] == false && config["remote"].blank?
|
|
end
|
|
end
|