From adb824806c05422d3613e2cf1e6bf11857581c70 Mon Sep 17 00:00:00 2001 From: sfwn Date: Thu, 29 Feb 2024 16:15:38 +0800 Subject: [PATCH] build: add docker login for k8s_build --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index 75444a37b..55ab1d337 100755 --- a/build.sh +++ b/build.sh @@ -31,6 +31,7 @@ function local_build_func() { } function k8s_build_func() { + docker login -u "${DOCKER_REGISTRY_USERNAME}" -p "${DOCKER_REGISTRY_PASSWORD}" "${DOCKER_REGISTRY}" buildctl --addr tcp://buildkitd.default.svc.cluster.local:1234 \ --tlscacert=/.buildkit/ca.pem \ --tlscert=/.buildkit/cert.pem \