Skip to content

Commit

Permalink
Moray/save l1 deployer logs (#1598)
Browse files Browse the repository at this point in the history
* Save l1 deployer container logs

* Set retention to 1 day
  • Loading branch information
moraygrieve authored Oct 13, 2023
1 parent b5620b1 commit 3d3c12c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/manual-deploy-testnet-l2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ jobs:
echo "L1_START_HASH=$L1START" >> $GITHUB_ENV
echo "L1_START_HASH=$L1START" >> $GITHUB_OUTPUT
- name: 'Save container logs on failure'
if: failure()
- name: 'Save L1 deployer container logs'
# Wait to make sure the logs are available in the container
run: |
sleep 60
Expand All @@ -128,14 +127,13 @@ jobs:
inlineScript: |
$(az resource list --tag ${{vars.RESOURCE_TAG_NAME}}=true --query '[]."id"' -o tsv | xargs -n1 az resource delete --verbose -g Testnet --ids) || true
- name: 'Upload container logs on failure'
- name: 'Upload L1 deployer container logs'
uses: actions/upload-artifact@v3
if: failure()
with:
name: deploy-l1-artifacts
path: |
deploy-l1-contracts.out
retention-days: 2
retention-days: 1

deploy:
needs: build
Expand Down Expand Up @@ -329,17 +327,17 @@ jobs:
-docker_image=${{vars.L2_HARDHATDEPLOYER_DOCKER_BUILD_TAG}} \
-faucet_funds=${{vars.FAUCET_FUNDS}}
- name: 'Save container logs'
- name: 'Save L2 deployer container logs'
run: |
docker logs `docker ps -aqf "name=hh-l2-deployer"` > deploy-l2-contracts.out 2>&1
- name: 'Upload container logs'
- name: 'Upload L2 deployer container logs'
uses: actions/upload-artifact@v3
with:
name: deploy-l2-artifacts
path: |
deploy-l2-contracts.out
retention-days: 2
retention-days: 1

deploy-faucet:
name: 'Trigger Faucet deployment for dev- / testnet on a new deployment'
Expand Down

0 comments on commit 3d3c12c

Please sign in to comment.