Skip to content

Commit

Permalink
add script step to l2 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
badgersrus committed Jan 14, 2025
1 parent 85832d2 commit ef886c3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/manual-deploy-testnet-l2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,40 @@ jobs:
grant-sequencers.out
retention-days: 7

set-challenge-period:
needs:
- build
- check-obscuro-is-healthy
runs-on: ubuntu-latest
environment:
name: ${{ github.event.inputs.testnet_type }}
steps:
- uses: actions/checkout@v4

- name: 'Set challenge period on management contract'
id: setChallengePeriod
shell: bash
run: |
go run ./testnet/launcher/l1challengeperiod/cmd \
-l1_http_url=${{ secrets.L1_HTTP_URL }} \
-private_key=${{ secrets.ACCOUNT_PK_WORKER }} \
-management_contract_addr=${{ needs.build.outputs.MGMT_CONTRACT_ADDR }} \
-docker_image=${{ vars.L2_HARDHATDEPLOYER_DOCKER_BUILD_TAG }} \
-l1_challenge_period={{ vars.L1_CHALLENGE_PERIOD }}
echo "Setting challenge period to ${{ vars.L1_CHALLENGE_PERIOD }}"
- name: 'Save challenge period container logs'
run: |
docker logs `docker ps -aqf "name=set-challenge-period"` > set-challenge-period.out 2>&1
- name: 'Upload challenge period container logs'
uses: actions/upload-artifact@v4
with:
name: set-challenge-period
path: |
set-challenge-period.out
retention-days: 7

deploy-l2-contracts:
needs:
- build
Expand Down

0 comments on commit ef886c3

Please sign in to comment.