Skip to content

Commit

Permalink
ci: cache odyssey build on e2e (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshieDo authored Nov 26, 2024
1 parent b35e5a9 commit eed4aa4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/assets/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu

COPY dist/odyssey /usr/local/bin

# Copy licenses
COPY LICENSE-* ./

# Copy the genesis files
ADD etc/dev-genesis.json ./etc/dev-genesis.json
ADD etc/odyssey-genesis.json ./etc/odyssey-genesis.json

EXPOSE 30303 30303/udp 9001 8545 9000 8546
ENTRYPOINT ["/usr/local/bin/odyssey"]
6 changes: 5 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
sudo apt update
sudo apt install kurtosis-cli
- name: Build Odyssey
run: docker buildx build . --load -t ghcr.io/ithacaxyz/odyssey:latest
run: |
cargo build --profile release --locked --bin odyssey &&
mkdir dist/ &&
cp ./target/release/odyssey dist/odyssey &&
docker buildx build . --load -f .github/assets/Dockerfile -t ghcr.io/ithacaxyz/odyssey:latest
- name: Run enclave
id: kurtosis
run: |
Expand Down

0 comments on commit eed4aa4

Please sign in to comment.