Skip to content

Nightly nextnet deploy #2

Nightly nextnet deploy

Nightly nextnet deploy #2

# TOOD(#10775): see 'releases'. We want to move away from this and use a bootstrap-oriented flow with our nightly releases.
name: Nightly nextnet deploy
on:
schedule:
# Run the workflow every night at 4:00 AM UTC. After the nightly tag has been created
- cron: "0 4 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
get-latest-tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.TAG }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Get latest nightly tag
id: get_tag
run: |
# Check if tonight's tag has been published to docker hub
current_version=$(jq -r '."."' .release-please-manifest.json)
echo "Current version: $current_version"
# Format the tag as: <current_version>-nightly.<YYYYMMDD>
nightly_tag="${current_version}-nightly.$(date -u +%Y%m%d)-amd64"
TAGS=$(curl -s https://registry.hub.docker.com/v2/repositories/aztecprotocol/aztec/tags/$nightly_tag)
if [[ "$TAGS" != *"not found"* ]]; then
echo "TAG=$nightly_tag" >> "$GITHUB_OUTPUT"
else
echo "Tag $nightly_tag not published to docker hub"
exit 1
fi
deploy-network:
needs: get-latest-tag
uses: ./.github/workflows/network-deploy.yml
with:
ref: ${{ github.ref }}
cluster: aztec-gke-private
namespace: next-rc-1
values_file: rc-1.yaml
aztec_docker_image: aztecprotocol/aztec:${{ needs.get-latest-tag.outputs.tag }}
deployment_mnemonic_secret_name: junk-mnemonic
respect_tf_lock: "false"
run_terraform_destroy: "true"
sepolia_deployment: "false"
skip_funding: true
secrets:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}