From bde9c355b4a97dd61da636471bedef59081b86af Mon Sep 17 00:00:00 2001 From: Shawn <44221603+shaspitz@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:20:49 -0800 Subject: [PATCH] test --- contracts/entrypoint.sh | 2 +- .../playbooks/templates/jobs/contracts-deployer.nomad.j2 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contracts/entrypoint.sh b/contracts/entrypoint.sh index af9176734..030ee4bf8 100755 --- a/contracts/entrypoint.sh +++ b/contracts/entrypoint.sh @@ -2,7 +2,7 @@ set -ex -DEPLOY_TYPE="l1-gateway" +DEPLOY_TYPE=${DEPLOY_TYPE:-core} FORGE_BIN_PATH=${FORGE_BIN_PATH:-forge} diff --git a/infrastructure/nomad/playbooks/templates/jobs/contracts-deployer.nomad.j2 b/infrastructure/nomad/playbooks/templates/jobs/contracts-deployer.nomad.j2 index f78d5757f..b563392da 100644 --- a/infrastructure/nomad/playbooks/templates/jobs/contracts-deployer.nomad.j2 +++ b/infrastructure/nomad/playbooks/templates/jobs/contracts-deployer.nomad.j2 @@ -217,7 +217,7 @@ job "{{ job.name }}" { {% if profile == 'testnet' %} export RPC_URL="{{ job.env['l1_rpc_url'] }}" export CHAIN_ID="17000" - export ETHERSCAN_API_KEY="H42PBNXAE8IK4YBF6AUKQMH79VW29D89H" + export ETHERSCAN_API_KEY="{{ job.env['etherscan_api_key'] }}" {% endif %} {%- raw %} @@ -228,6 +228,8 @@ job "{{ job.name }}" { {{- end }} {% endraw %} + export ETHERSCAN_API_KEY="H42PBNXAE8IK4YBF6AUKQMH79VW29D89H" + start_time=$(date +%s) export DEPLOY_TYPE="l1-gateway" echo "Deploying ${DEPLOY_TYPE} contracts..."