Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/devnet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
secrets:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}


bootstrap-network:
runs-on: ubuntu-latest
needs: deploy-network
Expand Down Expand Up @@ -130,4 +129,3 @@ jobs:
--json | tee ./basic_contracts.json

aws s3 cp ./basic_contracts.json ${{ env.CONTRACT_S3_BUCKET }}/devnet/basic_contracts.json

28 changes: 28 additions & 0 deletions .github/workflows/network-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ on:
required: false
type: string
default: "true"
run_terraform_destroy:
description: Whether to run terraform destroy before deploying
required: false
type: string
default: "false"
ref:
description: The branch name to deploy from
required: false
type: string
default: "master"
secrets:
GCP_SA_KEY:
required: true
Expand All @@ -47,6 +57,16 @@ on:
description: Whether to respect the Terraform lock
required: false
default: "true"
run_terraform_destroy:
description: Whether to run terraform destroy before deploying
required: false
type: string
default: "false"
ref:
description: The branch name to deploy from
required: false
type: string
default: "master"

jobs:
network_deployment:
Expand All @@ -71,6 +91,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
Expand Down Expand Up @@ -116,6 +138,12 @@ jobs:
-backend-config="bucket=${{ env.TF_STATE_BUCKET }}" \
-backend-config="prefix=network-deploy/${{ env.REGION }}/${{ env.CLUSTER_NAME }}/${{ env.NAMESPACE }}/terraform.tfstate" \

- name: Terraform Destroy
working-directory: ./spartan/terraform/deploy-release
if: ${{ inputs.run_terraform_destroy == 'true' }}
run: |
terraform destroy -auto-approve

- name: Terraform Plan
working-directory: ./spartan/terraform/deploy-release
run: |
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/nightly-masternet-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Nightly masternet deploy
on:
schedule:
# Run the workflow every night at 2:00 AM UTC.
- cron: "0 2 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
deploy-network:
uses: ./.github/workflows/network-deploy.yml
with:
ref: master
namespace: masternet
values_file: rc-1.yaml
aztec_docker_image: aztecprotocol/aztec:master
deployment_mnemonic_secret_name: testnet-deployment-mnemonic
respect_tf_lock: "false"
run_terraform_destroy: "true"
secrets:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
1 change: 1 addition & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
command: manifest
default-branch: ${{ env.BRANCH_NAME }}

- name: Dispatch to publish Aztec packages workflow
uses: benc-uk/workflow-dispatch@v1
Expand Down