Faaso deploy command

This commit is contained in:
2024-07-08 11:46:33 -03:00
parent 2face37b19
commit 62d66a5286
3 changed files with 45 additions and 9 deletions

View File

@ -24,6 +24,11 @@ module Funko
run_faaso(["scale", name, scale], env)
end
get "/funkos/:name/deploy" do |env|
name = env.params.url["name"]
run_faaso(["deploy", name], env)
end
# Build image for funko received as "funko.tgz"
# TODO: This may take a while, consider using something like
# mosquito-cr/mosquito to make it a job queue