-
Notifications
You must be signed in to change notification settings - Fork 609
66 lines (58 loc) · 2.17 KB
/
Copy pathdeploy-next-net.yml
File metadata and controls
66 lines (58 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Deploy next-net environment
# This workflow deploys the next-net environment with a specified version
# Runs from the private repo's next branch with the latest nightly tag, or a manually supplied tag
name: Deploy Next Net
on:
schedule:
# Run every morning at 6:00 AM UTC, after the nightly tag has been created
- cron: "0 6 * * *"
workflow_dispatch:
inputs:
image_tag:
description: "Docker image tag/semver (e.g., 6.0.0-nightly.20260609, or leave empty for latest nightly)"
required: false
type: string
deploy_contracts:
description: "Redeploy rollup contracts. Scheduled runs always redeploy contracts."
required: false
type: boolean
default: false
concurrency:
group: deploy-next-net-${{ inputs.image_tag || 'nightly' }}
cancel-in-progress: true
jobs:
get-image-tag:
if: ${{ github.repository == 'AztecProtocol/aztec-packages-private' }}
runs-on: ubuntu-latest
outputs:
semver: ${{ steps.determine_tag.outputs.SEMVER }}
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
ref: next
- name: Determine image tag
id: determine_tag
run: |
if [[ -n "${{ inputs.image_tag }}" ]]; then
SEMVER="${{ inputs.image_tag }}"
SEMVER="${SEMVER#v}"
SEMVER="${SEMVER%-amd64}"
echo "Using manually specified tag: $SEMVER"
else
current_version=$(jq -r '."."' .release-please-manifest.json)
echo "Current version: $current_version"
SEMVER="${current_version}-nightly.$(date -u +%Y%m%d)"
echo "Using nightly tag: $SEMVER"
fi
echo "SEMVER=$SEMVER" >> "$GITHUB_OUTPUT"
deploy-next-net:
needs: get-image-tag
if: ${{ github.repository == 'AztecProtocol/aztec-packages-private' }}
uses: ./.github/workflows/deploy-network.yml
with:
network: next-net
semver: ${{ needs.get-image-tag.outputs.semver }}
ref: next
use_internal_docker_registry: true
deploy_contracts: ${{ github.event_name == 'schedule' || inputs.deploy_contracts == true }}
secrets: inherit