Skip to content

Commit

Permalink
chore: Fix unbound CI variable on release image bootstrap (#12095)
Browse files Browse the repository at this point in the history
Would fail locally with:
```
release-image/bootstrap.sh: line 12: CI: unbound variable
```
  • Loading branch information
spalladino authored Feb 18, 2025
1 parent 3b8f876 commit 6089220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release-image/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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..."
Expand Down

0 comments on commit 6089220

Please sign in to comment.