docker_build now works
This commit is contained in:
parent
51304f3b85
commit
a4fbeaadd9
2 changed files with 5 additions and 5 deletions
2
build.py
2
build.py
|
@ -28,7 +28,7 @@ use_plugin("python.distutils")
|
|||
default_task = "publish"
|
||||
|
||||
name = "ddadevops"
|
||||
version = "4.0.0-dev9"
|
||||
version = "4.0.0-dev11"
|
||||
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
|
||||
description = __doc__
|
||||
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
||||
|
|
|
@ -67,7 +67,7 @@ class DockerApi:
|
|||
|
||||
def drun(self, name: str):
|
||||
run(
|
||||
f'docker run -it --entrypoint="{name}" /bin/bash',
|
||||
f"docker run -it --entrypoint=\"\" {name} /bin/bash",
|
||||
shell=True,
|
||||
check=True,
|
||||
)
|
||||
|
@ -82,17 +82,17 @@ class DockerApi:
|
|||
def dockerhub_publish(self, name: str, username: str, tag=None):
|
||||
if tag is not None:
|
||||
run(
|
||||
f"docker tag {name} {username} /{name}:{tag}",
|
||||
f"docker tag {name} {username}/{name}:{tag}",
|
||||
shell=True,
|
||||
check=True,
|
||||
)
|
||||
run(
|
||||
f"docker push {username} / {name}:{tag}",
|
||||
f"docker push {username}/{name}:{tag}",
|
||||
shell=True,
|
||||
check=True,
|
||||
)
|
||||
run(
|
||||
f"docker tag {name} {username}/{name} :latest",
|
||||
f"docker tag {name} {username}/{name}:latest",
|
||||
shell=True,
|
||||
check=True,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue