1- # Deploy next-net environment from merge-train/spartan
1+ # Deploy next-net environment
22# This workflow deploys the next-net environment with a specified version
3- # Runs nightly with the latest spartan nightly tag, or can be manually triggered with any image
3+ # Runs nightly with the latest nightly tag, or can be manually triggered with any image
44name : Deploy Next Net
55
66on :
1010 workflow_dispatch :
1111 inputs :
1212 image_tag :
13- description : ' Docker image tag (e.g., 2.3.4, 3.0.0-spartan .20251004-amd64, or leave empty for latest spartan nightly)'
13+ description : ' Docker image tag (e.g., 2.3.4, 3.0.0-nightly .20251004-amd64, or leave empty for latest nightly)'
1414 required : false
1515 type : string
1616
2727
2828 steps :
2929 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
30- with :
31- ref : merge-train/spartan
3230
3331 - name : Determine image tag
3432 id : determine_tag
@@ -38,22 +36,22 @@ jobs:
3836 TAG="${{ inputs.image_tag }}"
3937 echo "Using manually specified tag: $TAG"
4038
41- # Extract semver (remove -amd64 suffix if present, remove -spartan .YYYYMMDD if present)
42- SEMVER=$(echo "$TAG" | sed 's/-amd64$//' | sed 's/-spartan \.[0-9]\{8\}//')
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\}//')
4341 else
44- # Scheduled nightly run - get latest spartan nightly tag
42+ # Scheduled nightly run - get latest nightly tag
4543 current_version=$(jq -r '."."' .release-please-manifest.json)
4644 echo "Current version: $current_version"
4745
48- # Format the tag as: <current_version>-spartan .<YYYYMMDD>-amd64
49- nightly_tag="${current_version}-spartan .$(date -u +%Y%m%d)-amd64"
46+ # Format the tag as: <current_version>-nightly .<YYYYMMDD>-amd64
47+ nightly_tag="${current_version}-nightly .$(date -u +%Y%m%d)-amd64"
5048
5149 # Check if the tag exists on docker hub
5250 TAGS=$(curl -s https://registry.hub.docker.com/v2/repositories/aztecprotocol/aztec/tags/$nightly_tag)
5351 if [[ "$TAGS" != *"not found"* ]]; then
5452 TAG="$nightly_tag"
5553 SEMVER="$current_version"
56- echo "Using spartan nightly tag: $TAG"
54+ echo "Using nightly tag: $TAG"
5755 else
5856 echo "Error: Tag $nightly_tag not published to docker hub"
5957 exit 1
7068 network : next-net
7169 semver : ${{ needs.get-image-tag.outputs.semver }}
7270 docker_image_tag : ${{ needs.get-image-tag.outputs.tag }}
73- ref : merge-train/spartan
71+ ref : ${{ github.ref }}
7472 secrets : inherit
0 commit comments