Prune deployed images
This commit is contained in:
parent
cf8c677c25
commit
684daf43cc
|
@ -29,11 +29,10 @@ defmodule Chronoscope.NTS do
|
|||
|
||||
[] ->
|
||||
{:ok, pid} =
|
||||
NTS.DynamicSupervisor
|
||||
|> DynamicSupervisor.start_child({
|
||||
NTS.Client,
|
||||
host: host, port: port, name: {:via, Registry, {NTS.Registry, name}}
|
||||
})
|
||||
DynamicSupervisor.start_child(
|
||||
NTS.DynamicSupervisor,
|
||||
{NTS.Client, host: host, port: port, name: {:via, Registry, {NTS.Registry, name}}}
|
||||
)
|
||||
|
||||
GenServer.call(pid, :key_establishment)
|
||||
end
|
||||
|
|
|
@ -27,6 +27,10 @@ defmodule Mix.Tasks.Deploy do
|
|||
into: IO.stream()
|
||||
)
|
||||
|
||||
System.cmd("ssh", [host, "cd chronoscope && buildah build -t chronoscope:latest && podman auto-update"], into: IO.stream())
|
||||
System.cmd(
|
||||
"ssh",
|
||||
[host, "cd chronoscope && buildah build -t chronoscope:latest && podman auto-update && podman image prune -f"],
|
||||
into: IO.stream()
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue