diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 20ae6644b9..723640c4f6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,18 +3,20 @@ name: docker on: - workflow_dispatch: {} + workflow_dispatch: { } push: tags: - v* env: REPO_NAME: ${{ github.repository_owner }}/reth - IMAGE_NAME: ${{ github.repository_owner }}/reth + # IMAGE_NAME: ${{ github.repository_owner }}/reth OP_IMAGE_NAME: ${{ github.repository_owner }}/op-reth + BSC_IMAGE_NAME: ${{ github.repository_owner }}/bsc-reth CARGO_TERM_COLOR: always - DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/reth + # DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/reth OP_DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/op-reth + BSC_DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/bsc-reth DOCKER_USERNAME: ${{ github.actor }} jobs: @@ -38,15 +40,21 @@ jobs: run: | docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64 docker buildx create --use --name cross-builder - - name: Build and push reth image, tag as "latest" - if: ${{ contains(github.event.ref, 'beta') }} - run: make PROFILE=maxperf docker-build-push-latest - - name: Build and push reth image - if: ${{ ! contains(github.event.ref, 'beta') }} - run: make PROFILE=maxperf docker-build-push + # - name: Build and push reth image, tag as "latest" + # if: ${{ contains(github.event.ref, 'beta') }} + # run: make PROFILE=maxperf docker-build-push-latest + # - name: Build and push reth image + # if: ${{ ! contains(github.event.ref, 'beta') }} + # run: make PROFILE=maxperf docker-build-push - name: Build and push op-reth image, tag as "latest" if: ${{ contains(github.event.ref, 'beta') }} run: make IMAGE_NAME=$OP_IMAGE_NAME DOCKER_IMAGE_NAME=$OP_DOCKER_IMAGE_NAME PROFILE=maxperf op-docker-build-push-latest - name: Build and push op-reth image if: ${{ ! contains(github.event.ref, 'beta') }} run: make IMAGE_NAME=$OP_IMAGE_NAME DOCKER_IMAGE_NAME=$OP_DOCKER_IMAGE_NAME PROFILE=maxperf op-docker-build-push + - name: Build and push bsc-reth image, tag as "latest" + if: ${{ contains(github.event.ref, 'beta') }} + run: make IMAGE_NAME=$BSC_IMAGE_NAME DOCKER_IMAGE_NAME=$BSC_DOCKER_IMAGE_NAME PROFILE=maxperf bsc-docker-build-push-latest + - name: Build and push bsc-reth image + if: ${{ ! contains(github.event.ref, 'beta') }} + run: make IMAGE_NAME=$BSC_IMAGE_NAME DOCKER_IMAGE_NAME=$BSC_DOCKER_IMAGE_NAME PROFILE=maxperf bsc-docker-build-push \ No newline at end of file diff --git a/Makefile b/Makefile index 06d2df5b1e..12d37f0e21 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ build-native-%: cargo build --bin reth --target $* --features "$(FEATURES)" --profile "$(PROFILE)" op-build-native-%: - cargo build --bin op-reth --target $* --features "optimism,$(FEATURES)" --profile "$(PROFILE)" + cargo build --bin op-reth --target $* --features "optimism,opbnb,$(FEATURES)" --profile "$(PROFILE)" bsc-build-native-%: cargo build --bin bsc-reth --target $* --features "bsc,$(FEATURES)" --profile "$(PROFILE)" @@ -123,7 +123,7 @@ build-%: op-build-%: RUSTFLAGS="-C link-arg=-lgcc -Clink-arg=-static-libgcc" \ - cross build --bin op-reth --target $* --features "optimism,$(FEATURES)" --profile "$(PROFILE)" + cross build --bin op-reth --target $* --features "optimism,opbnb,$(FEATURES)" --profile "$(PROFILE)" bsc-build-%: RUSTFLAGS="-C link-arg=-lgcc -Clink-arg=-static-libgcc" \