fix: silence shutdown noise from MqWatcher and Web3 provider #1817
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Test keys generation instruction from the README by booting the docker image | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| generate-keys: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Log in to registry | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} | |
| --password-stdin | |
| - name: Download Docker cache image (if available) | |
| run: docker pull ghcr.io/$GITHUB_REPOSITORY/build-cache || true | |
| - name: Compute version | |
| id: version | |
| run: | | |
| git fetch --prune --unshallow --tags | |
| python3 -m pip install --quiet --user hatch hatch-vcs | |
| echo "value=$(hatch version)" >> "$GITHUB_OUTPUT" | |
| - name: Build the Docker image | |
| run: | | |
| docker build . -t alephim/pyaleph-node:${GITHUB_REF##*/} \ | |
| --build-arg VERSION=${{ steps.version.outputs.value }} \ | |
| -f deployment/docker-build/pyaleph.dockerfile \ | |
| --cache-from=ghcr.io/$GITHUB_REPOSITORY/build-cache | |
| - name: Tag the image | |
| run: | | |
| docker tag alephim/pyaleph-node:${GITHUB_REF##*/} ghcr.io/$GITHUB_REPOSITORY/build-cache | |
| - name: Generate keys | |
| run: | | |
| mkdir keys | |
| docker run --rm --user root --entrypoint "" -v $(pwd)/keys:/opt/pyaleph/keys alephim/pyaleph-node:${GITHUB_REF##*/} chown aleph:aleph /opt/pyaleph/keys | |
| docker run --rm --entrypoint "" -v $(pwd)/keys:/opt/pyaleph/keys alephim/pyaleph-node:${GITHUB_REF##*/} pyaleph --gen-keys --key-dir /opt/pyaleph/keys | |
| - name: Ensure keys exists | |
| run: |- | |
| ls keys/node-pub.key | |
| ls keys/node-secret.pkcs8.der |