Skip to content

Commit 7fb19f0

Browse files
committed
fixup: Ensure images will be pushed
1 parent 84158d3 commit 7fb19f0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/build_antithesis_images.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ function build_images {
5353

5454
# Define default build command
5555
local docker_cmd="docker buildx build --build-arg GO_VERSION=${GO_VERSION} --build-arg NODE_IMAGE=${node_image_name}"
56+
if [[ -n "${IMAGE_PREFIX}" ]]; then
57+
# Push images with an image prefix since the prefix defines a registry location
58+
docker_cmd="${docker_cmd} --push"
59+
fi
5660

5761
# Build node image first to allow the workload image to be based on it.
5862
${docker_cmd} --build-arg AVALANCHEGO_NODE_IMAGE="${avalanche_node_image}" -t "${node_image_name}" \
@@ -102,6 +106,6 @@ git checkout -B "test-${AVALANCHE_VERSION}" "${AVALANCHE_VERSION}"
102106
cd "${SUBNET_EVM_PATH}"
103107

104108
# Build avalanchego node image. Supply an empty tag so the tag can be discovered from the hash of the avalanchego repo.
105-
NODE_ONLY=1 TEST_SETUP=avalanchego IMAGE_PREFIX="${IMAGE_PREFIX}" TAG='' bash -x "${AVALANCHEGO_CLONE_PATH}"/scripts/build_antithesis_images.sh
109+
NODE_ONLY=1 TEST_SETUP=avalanchego TAG='' bash -x "${AVALANCHEGO_CLONE_PATH}"/scripts/build_antithesis_images.sh
106110

107111
build_images antithesis-subnet-evm "${SUBNET_EVM_PATH}/Dockerfile" "antithesis-avalanchego-node:${AVALANCHE_VERSION::8}"

scripts/versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# shellcheck disable=SC2034
55

66
# Don't export them as they're used in the context of other calls
7-
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'ad654210e'}
7+
AVALANCHE_VERSION=${AVALANCHE_VERSION:-'133b33e2b'}
88
GINKGO_VERSION=${GINKGO_VERSION:-'v2.2.0'}
99

1010
# This won't be used, but it's here to make code syncs easier

0 commit comments

Comments
 (0)