Skip to content

Commit 4f4b0af

Browse files
committed
fixup: Ensure the base image for xsvm is not pushed
1 parent e9a38b2 commit 4f4b0af

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/build_antithesis_images.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ function build_images {
3535

3636
# Define image names
3737
local base_image_name="antithesis-${test_setup}"
38-
local avalanchego_node_image_name="antithesis-avalanchego-node:${TAG}"
3938
if [[ -n "${image_prefix}" ]]; then
4039
base_image_name="${image_prefix}/${base_image_name}"
41-
avalanchego_node_image_name="${image_prefix}/${avalanchego_node_image_name}"
4240
fi
4341
local node_image_name="${base_image_name}-node:${TAG}"
4442
local workload_image_name="${base_image_name}-workload:${TAG}"
@@ -58,8 +56,9 @@ function build_images {
5856
local docker_cmd="docker buildx build --build-arg GO_VERSION=${GO_VERSION} --build-arg NODE_IMAGE=${node_image_name}"
5957

6058
if [[ "${test_setup}" == "xsvm" ]]; then
61-
# The xsvm node image is built on the avalanchego node image
62-
docker_cmd="${docker_cmd} --build-arg AVALANCHEGO_NODE_IMAGE=${avalanchego_node_image_name}"
59+
# The xsvm node image is built on the avalanchego node image, which is assumed to have already been
60+
# built. The image name doesn't include the image prefix because it is not intended to be pushed.
61+
docker_cmd="${docker_cmd} --build-arg AVALANCHEGO_NODE_IMAGE=antithesis-avalanchego-node:${TAG}"
6362
fi
6463

6564
# Build node image first to allow the workload image to use it.

0 commit comments

Comments
 (0)