ci(hive): build reth externally (#9281)

This commit is contained in:
joshieDo
2024-07-03 23:00:23 +02:00
committed by GitHub
parent a7caf0d284
commit 4db0edd72f
2 changed files with 18 additions and 4 deletions

8
.github/assets/hive/Dockerfile vendored Normal file
View File

@ -0,0 +1,8 @@
FROM ubuntu
COPY dist/reth /usr/local/bin
COPY LICENSE-* ./
EXPOSE 30303 30303/udp 9001 8545 8546
ENTRYPOINT ["/usr/local/bin/reth"]

View File

@ -23,17 +23,23 @@ jobs:
group: Reth
steps:
- uses: actions/checkout@v4
- run: mkdir artifacts
- run: mkdir artifacts
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Build reth
run: |
cargo build --features asm-keccak --profile hivetests --bin reth --locked
mkdir dist && cp ./target/hivetests/reth ./dist/reth
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export reth image
uses: docker/build-push-action@v6
with:
context: .
file: .github/assets/hive/Dockerfile
tags: ghcr.io/paradigmxyz/reth:latest
build-args: |
BUILD_PROFILE=hivetests
FEATURES=asm-keccak
outputs: type=docker,dest=./artifacts/reth_image.tar
cache-from: type=gha
cache-to: type=gha,mode=max