88 - v*
99
1010env :
11- REPO_NAME : ${{ github.repository_owner }}/reth
1211 IMAGE_NAME : ${{ github.repository_owner }}/reth
1312 OP_IMAGE_NAME : ${{ github.repository_owner }}/op-reth
1413 CARGO_TERM_COLOR : always
1716 DOCKER_USERNAME : ${{ github.actor }}
1817
1918jobs :
19+ build-rc :
20+ if : contains(github.ref, '-rc')
21+ name : build and push
22+ runs-on : ubuntu-24.04
23+ permissions :
24+ packages : write
25+ contents : read
26+ strategy :
27+ fail-fast : false
28+ matrix :
29+ build :
30+ - name : " Build and push reth image"
31+ command : " make IMAGE_NAME=$IMAGE_NAME DOCKER_IMAGE_NAME=$DOCKER_IMAGE_NAME PROFILE=maxperf docker-build-push"
32+ - name : " Build and push op-reth image"
33+ command : " make IMAGE_NAME=$OP_IMAGE_NAME DOCKER_IMAGE_NAME=$OP_DOCKER_IMAGE_NAME PROFILE=maxperf op-docker-build-push"
34+ steps :
35+ - uses : actions/checkout@v4
36+ - uses : rui314/setup-mold@v1
37+ - uses : dtolnay/rust-toolchain@stable
38+ - uses : Swatinem/rust-cache@v2
39+ with :
40+ cache-on-failure : true
41+ - name : Install cross main
42+ id : cross_main
43+ run : |
44+ cargo install cross --git https://github.com/cross-rs/cross
45+ - name : Log in to Docker
46+ run : |
47+ echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${DOCKER_USERNAME} --password-stdin
48+ - name : Set up Docker builder
49+ run : |
50+ docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64
51+ docker buildx create --use --name cross-builder
52+ - name : Build and push ${{ matrix.build.name }}
53+ run : ${{ matrix.build.command }}
54+
2055 build :
56+ if : ${{ !contains(github.ref, '-rc') }}
2157 name : build and push
2258 runs-on : ubuntu-24.04
2359 permissions :
@@ -27,14 +63,10 @@ jobs:
2763 fail-fast : false
2864 matrix :
2965 build :
30- - name : ' Build and push reth image'
31- command : ' make PROFILE=maxperf docker-build-push'
32- - name : ' Build and push reth image, tag as "latest"'
33- command : ' make PROFILE=maxperf docker-build-push-latest'
34- - name : ' Build and push op-reth image'
35- command : ' make IMAGE_NAME=$OP_IMAGE_NAME DOCKER_IMAGE_NAME=$OP_DOCKER_IMAGE_NAME PROFILE=maxperf op-docker-build-push'
36- - name : ' Build and push op-reth image, tag as "latest"'
37- command : ' make IMAGE_NAME=$OP_IMAGE_NAME DOCKER_IMAGE_NAME=$OP_DOCKER_IMAGE_NAME PROFILE=maxperf op-docker-build-push-latest'
66+ - name : " Build and push reth image"
67+ command : " make IMAGE_NAME=$IMAGE_NAME DOCKER_IMAGE_NAME=$DOCKER_IMAGE_NAME PROFILE=maxperf docker-build-push-latest"
68+ - name : " Build and push op-reth image"
69+ command : " make IMAGE_NAME=$OP_IMAGE_NAME DOCKER_IMAGE_NAME=$OP_DOCKER_IMAGE_NAME PROFILE=maxperf op-docker-build-push-latest"
3870 steps :
3971 - uses : actions/checkout@v4
4072 - uses : rui314/setup-mold@v1
0 commit comments