update
Some checks failed
Backend EC - Modal Deployment / build-and-push (push) Failing after 56s
Backend EC - Modal Deployment / notify-deploy (push) Has been skipped

This commit is contained in:
DatTT127
2026-07-19 00:17:03 +07:00
parent 10b9991e94
commit 2df016dce2

View File

@@ -138,8 +138,10 @@ def build_and_push(
"--verbosity", "info",
]
# Configure the environment variables to include DOCKER_CONFIG if auth exists
current_env = os.environ.copy()
if docker_config_dir:
kaniko_cmd.extend(["--docker-config", str(docker_config_dir)])
current_env["DOCKER_CONFIG"] = str(docker_config_dir)
print(f"Running Kaniko: {' '.join(kaniko_cmd)}")
result = subprocess.run(kaniko_cmd, capture_output=True, text=True)