Skip to content

Commit 455fe06

Browse files
authored
chore: fix next-net deployment (#23268)
Fix prover-agent docker image tag
2 parents 19a4e2a + 6e56f8c commit 455fe06

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/deploy-network.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,18 @@ jobs:
142142
fi
143143
echo "AZTEC_DOCKER_IMAGE=$AZTEC_DOCKER_IMAGE" >> $GITHUB_ENV
144144
145-
# Only use the separate prover-agent image for official semver builds;
146-
# for custom images, let the deploy script fall back to AZTEC_DOCKER_IMAGE
145+
# Use the CRS-baked prover-agent image when it exists; otherwise let the
146+
# deploy script fall back to AZTEC_DOCKER_IMAGE and download CRS on startup.
147147
if [[ -n "${{ inputs.semver }}" ]]; then
148-
echo "PROVER_AGENT_DOCKER_IMAGE=aztecprotocol/aztec-prover-agent:${{ inputs.semver }}" >> $GITHUB_ENV
148+
PROVER_AGENT_DOCKER_IMAGE="aztecprotocol/aztec-prover-agent:${{ inputs.semver }}"
149+
150+
echo "Checking if prover agent image exists: $PROVER_AGENT_DOCKER_IMAGE"
151+
if docker manifest inspect "$PROVER_AGENT_DOCKER_IMAGE" > /dev/null 2>&1; then
152+
echo "PROVER_AGENT_DOCKER_IMAGE=$PROVER_AGENT_DOCKER_IMAGE" >> $GITHUB_ENV
153+
else
154+
echo "Prover agent image does not exist: $PROVER_AGENT_DOCKER_IMAGE"
155+
echo "Falling back to AZTEC_DOCKER_IMAGE for prover agents."
156+
fi
149157
fi
150158
151159
- name: Store the GCP key in a file

.github/workflows/deploy-next-net.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,22 @@ jobs:
3636
TAG="${{ inputs.image_tag }}"
3737
echo "Using manually specified tag: $TAG"
3838
39-
# Extract semver (remove -amd64 suffix if present, remove -nightly.YYYYMMDD if present)
40-
SEMVER=$(echo "$TAG" | sed 's/-amd64$//' | sed 's/-nightly\.[0-9]\{8\}//')
39+
# Extract semver (remove -amd64 suffix if present)
40+
SEMVER=$(echo "$TAG" | sed 's/-amd64$//')
4141
else
4242
# Scheduled nightly run - get latest nightly tag
4343
current_version=$(jq -r '."."' .release-please-manifest.json)
4444
echo "Current version: $current_version"
4545
4646
# Format the tag as: <current_version>-nightly.<YYYYMMDD>-amd64
47-
nightly_tag="${current_version}-nightly.$(date -u +%Y%m%d)-amd64"
47+
nightly_semver="${current_version}-nightly.$(date -u +%Y%m%d)"
48+
nightly_tag="${nightly_semver}-amd64"
4849
4950
# Check if the tag exists on docker hub
5051
TAGS=$(curl -s https://registry.hub.docker.com/v2/repositories/aztecprotocol/aztec/tags/$nightly_tag)
5152
if [[ "$TAGS" != *"not found"* ]]; then
5253
TAG="$nightly_tag"
53-
SEMVER="$current_version"
54+
SEMVER="$nightly_semver"
5455
echo "Using nightly tag: $TAG"
5556
else
5657
echo "Error: Tag $nightly_tag not published to docker hub"

0 commit comments

Comments
 (0)