Regenerate nvim config
This commit is contained in:
25
config/neovim/store/lazy-plugins/chadtree/ci/run.py
Normal file
25
config/neovim/store/lazy-plugins/chadtree/ci/run.py
Normal file
@ -0,0 +1,25 @@
|
||||
from pathlib import Path
|
||||
from subprocess import check_call, check_output
|
||||
|
||||
|
||||
def docker_run(dockerfile: Path) -> str:
|
||||
parent = dockerfile.parent
|
||||
name = f"chad_{parent.name}"
|
||||
check_call(
|
||||
(
|
||||
"docker",
|
||||
"buildx",
|
||||
"build",
|
||||
"--progress",
|
||||
"plain",
|
||||
"--tag",
|
||||
name,
|
||||
"--file",
|
||||
dockerfile,
|
||||
"--",
|
||||
".",
|
||||
),
|
||||
cwd=parent,
|
||||
)
|
||||
output = check_output(("docker", "run", "--rm", name), text=True)
|
||||
return output
|
||||
Reference in New Issue
Block a user