From 2ad2d5d35ca127cc467bbb4dc7d9cd32c288d207 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Tue, 18 Feb 2025 18:28:43 -0300 Subject: [PATCH] chore: Fix unbound CI variable on release image bootstrap Would fail locally with: ``` release-image/bootstrap.sh: line 12: CI: unbound variable ``` --- release-image/bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release-image/bootstrap.sh b/release-image/bootstrap.sh index 9179096c75dc..78bd4c6070c8 100755 --- a/release-image/bootstrap.sh +++ b/release-image/bootstrap.sh @@ -9,7 +9,7 @@ case "$cmd" in cd .. denoise "docker build -f release-image/Dockerfile -t aztecprotocol/aztec:$(git rev-parse HEAD) ." docker tag aztecprotocol/aztec:$(git rev-parse HEAD) aztecprotocol/aztec:latest - if [ "$REF_NAME" == "master" ] && [ "$CI" -eq 1 ]; then + if [ "$REF_NAME" == "master" ] && [ "${CI:-0}" -eq 1 ]; then docker tag aztecprotocol/aztec:$COMMIT_HASH aztecprotocol/aztec:$COMMIT_HASH-$(arch) do_or_dryrun docker push aztecprotocol/aztec:$COMMIT_HASH-$(arch) fi @@ -20,7 +20,7 @@ case "$cmd" in do_or_dryrun docker push aztecprotocol/aztec:${REF_NAME}-$(arch) # If doing a release in CI, update the remote manifest if we're the arm build. - if [ "${DRY_RUN:-0}" == 0 ] && [ "$(arch)" == "arm64" ] && [ "$CI" -eq 1 ]; then + if [ "${DRY_RUN:-0}" == 0 ] && [ "$(arch)" == "arm64" ] && [ "${CI:-0}" -eq 1 ]; then # Wait for amd64 image to be available. while ! docker manifest inspect aztecprotocol/aztec:${REFNAME}-$(arch) &>/dev/null; do echo "Waiting for amd64 image to be pushed..."