mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
ci(hive): build reth externally (#9281)
This commit is contained in:
8
.github/assets/hive/Dockerfile
vendored
Normal file
8
.github/assets/hive/Dockerfile
vendored
Normal 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"]
|
||||
14
.github/workflows/hive.yml
vendored
14
.github/workflows/hive.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user