From 3262ad829202608420e784c988cfe7243d5c1f96 Mon Sep 17 00:00:00 2001 From: RRashmit Date: Thu, 7 Nov 2024 12:16:29 +0000 Subject: [PATCH] chore: updated build target --- test/helpers/test_containers_utils.go | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/test/helpers/test_containers_utils.go b/test/helpers/test_containers_utils.go index e33fab87b..82e746be4 100644 --- a/test/helpers/test_containers_utils.go +++ b/test/helpers/test_containers_utils.go @@ -169,10 +169,10 @@ func StartNginxLessContainer( packageName := Env(tb, "PACKAGE_NAME") packageRepo := Env(tb, "PACKAGES_REPO") baseImage := Env(tb, "BASE_IMAGE") + buildTarget := Env(tb, "BUILD_TARGET") osRelease := Env(tb, "OS_RELEASE") osVersion := Env(tb, "OS_VERSION") dockerfilePath := Env(tb, "DOCKERFILE_PATH") - containerRegistry := Env(tb, "CONTAINER_NGINX_IMAGE_REGISTRY") tag := Env(tb, "TAG") imagePath := Env(tb, "IMAGE_PATH") @@ -183,18 +183,17 @@ func StartNginxLessContainer( KeepImage: false, PrintBuildLog: true, BuildArgs: map[string]*string{ - "PACKAGE_NAME": ToPtr(packageName), - "PACKAGES_REPO": ToPtr(packageRepo), - "BASE_IMAGE": ToPtr(baseImage), - "OS_RELEASE": ToPtr(osRelease), - "OS_VERSION": ToPtr(osVersion), - "ENTRY_POINT": ToPtr("./test/docker/nginxless-entrypoint.sh"), - "CONTAINER_NGINX_IMAGE_REGISTRY": ToPtr(containerRegistry), - "IMAGE_PATH": ToPtr(imagePath), - "TAG": ToPtr(tag), + "PACKAGE_NAME": ToPtr(packageName), + "PACKAGES_REPO": ToPtr(packageRepo), + "BASE_IMAGE": ToPtr(baseImage), + "OS_RELEASE": ToPtr(osRelease), + "OS_VERSION": ToPtr(osVersion), + "ENTRY_POINT": ToPtr("./test/docker/nginxless-entrypoint.sh"), + "IMAGE_PATH": ToPtr(imagePath), + "TAG": ToPtr(tag), }, BuildOptionsModifier: func(buildOptions *types.ImageBuildOptions) { - buildOptions.Target = "install-agent-local" + buildOptions.Target = buildTarget }, }, ExposedPorts: []string{"9094/tcp"},