fix(ci): build docker image with host network
Agent CI/CD / docker-image (push) Failing after 26s
Agent CI/CD / deploy-fallback-log (push) Successful in 1s

This commit is contained in:
2026-07-17 17:46:53 +08:00
parent 9aad38acb1
commit 78f9f6fb42
+2
View File
@@ -148,12 +148,14 @@ jobs:
if [ "${IMAGE_TAG}" = "latest" ]; then if [ "${IMAGE_TAG}" = "latest" ]; then
docker build \ docker build \
--network=host \
-f ./Dockerfile \ -f ./Dockerfile \
-t "${IMAGE_NAME}:latest" \ -t "${IMAGE_NAME}:latest" \
. .
push_with_retry "${IMAGE_NAME}:latest" push_with_retry "${IMAGE_NAME}:latest"
else else
docker build \ docker build \
--network=host \
-f ./Dockerfile \ -f ./Dockerfile \
-t "${IMAGE_NAME}:${IMAGE_TAG}" \ -t "${IMAGE_NAME}:${IMAGE_TAG}" \
-t "${IMAGE_NAME}:latest" \ -t "${IMAGE_NAME}:latest" \