generated from marked/CSSharpTemplate
Initial commit
This commit is contained in:
commit
a44fe0dbe0
20 changed files with 1237 additions and 0 deletions
16
lune/manager/replicators/docker.luau
Normal file
16
lune/manager/replicators/docker.luau
Normal file
|
@ -0,0 +1,16 @@
|
|||
--!strict
|
||||
local process = require("@lune/process")
|
||||
|
||||
local common = require("../common")
|
||||
local result = require("@pkg/result")
|
||||
|
||||
local function docker_replicator(dist_folder: string, remote_output: string): result.Identity<nil>
|
||||
local copy_result = process.spawn("docker", { "cp", "-r", dist_folder, remote_output })
|
||||
if not copy_result.ok then
|
||||
return result(false, `Failed to copy files:\n{copy_result.stderr}`)
|
||||
end
|
||||
|
||||
return result(true, nil)
|
||||
end
|
||||
|
||||
return docker_replicator :: common.Replicator
|
Loading…
Add table
Add a link
Reference in a new issue