shovel/jrpc2: improve error detection for 'eth backend missing logs f… #392
This file contains 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: docker | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'r/docker' | |
jobs: | |
docker: | |
runs-on: large | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Set short git commit SHA | |
id: vars | |
run: | | |
ss=$(echo ${{ github.sha }} | cut -c1-4) | |
echo "SS=$ss" >> $GITHUB_ENV | |
- | |
name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: . | |
file: ./cmd/shovel/Dockerfile | |
push: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
tags: indexsupply/shovel:latest,indexsupply/shovel:${{ env.SS }} |