Skip to content

Commit 272c02e

Browse files
fix release script
1 parent 02f4e17 commit 272c02e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ build_module() {
6161
verify_and_build_base_image
6262

6363
printf "${MAGENTA}Building module for NGINX ${NGINX_VERSION}...${NC}\n"
64-
docker image build \
64+
docker buildx build \
6565
-f nginx.dockerfile \
6666
-t ${FULL_IMAGE_NAME}:${NGINX_VERSION} \
6767
--build-arg BASE_IMAGE=${baseImage} \
@@ -88,7 +88,7 @@ start_nginx() {
8888
local port=$(get_port)
8989

9090
printf "${MAGENTA}Starting NGINX container (${IMAGE_NAME}) on port ${port}...${NC}\n"
91-
docker run --rm --name "${IMAGE_NAME}" -d -p ${port}:80 ${FULL_IMAGE_NAME} >/dev/null
91+
docker run --rm --name "${IMAGE_NAME}" -d -p ${port}:80 ${FULL_IMAGE_NAME}:${NGINX_VERSION} >/dev/null
9292
}
9393

9494
stop_nginx() {
@@ -128,7 +128,7 @@ make_release() {
128128
printf "${MAGENTA}Making release for version ${moduleVersion} for NGINX ${NGINX_VERSION}...${NC}\n"
129129

130130
rebuild_module
131-
rebuild_test_runner
131+
rebuild_test
132132
test
133133
cp_bin
134134

0 commit comments

Comments
 (0)