From 07fabe8d1760ce990c54bf3d95f34dec06e1c715 Mon Sep 17 00:00:00 2001 From: just-mitch <68168980+just-mitch@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:31:21 -0500 Subject: [PATCH] chore: stable masternet images (#11289) Now when pods restart they have the original image. --- .github/workflows/nightly-masternet-deploy.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly-masternet-deploy.yml b/.github/workflows/nightly-masternet-deploy.yml index 3c0271d565b..b2f937c891a 100644 --- a/.github/workflows/nightly-masternet-deploy.yml +++ b/.github/workflows/nightly-masternet-deploy.yml @@ -9,13 +9,28 @@ concurrency: cancel-in-progress: false jobs: + get-latest-commit: + runs-on: ubuntu-latest + outputs: + commit: ${{ steps.get_commit.outputs.COMMIT }} + + steps: + - uses: actions/checkout@v4 + + - name: Get latest published commit + id: get_commit + run: | + COMMIT=$(curl -s https://registry.hub.docker.com/v2/repositories/aztecprotocol/aztec/tags/master | jq ".digest" | tr -d '"') + echo "COMMIT=$COMMIT" >> $GITHUB_OUTPUT + deploy-network: + needs: get-latest-commit uses: ./.github/workflows/network-deploy.yml with: ref: master namespace: masternet values_file: rc-1.yaml - aztec_docker_image: aztecprotocol/aztec:master + aztec_docker_image: aztecprotocol/aztec@${{ needs.get-latest-commit.outputs.commit }} deployment_mnemonic_secret_name: testnet-deployment-mnemonic respect_tf_lock: "false" run_terraform_destroy: "true"