Skip to content

Commit

Permalink
fix: add a temporary slug to resolve Docker-in-Docker execution
Browse files Browse the repository at this point in the history
  • Loading branch information
seppzer0 committed Nov 11, 2023
1 parent 0de0ad2 commit e09fefa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wrapper/engines/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def _build(self) -> None:
msg.note(f"Building the {alias} image..")
os.chdir(self._wdir_local)
# build only if it is not present in local cache
if self._name_image not in ccmd.launch(f"{self._buildenv} image list --format '{{.Repository}}'", get_output=True):
# TODO: find a way to remove this slug for the command to work in GitLab CI/CD (Docker-in-Docker)
#if self._name_image not in ccmd.launch(f"{self._buildenv} image list --format '{{.Repository}}'", get_output=True):
if "slug" == "slug":
# force enable Docker Buildkit
if self._buildenv == "docker":
os.environ["DOCKER_BUILDKIT"] = "1"
Expand Down

0 comments on commit e09fefa

Please sign in to comment.