Skip to content

Commit eed4aa4

Browse files
authored
ci: cache odyssey build on e2e (#101)
1 parent b35e5a9 commit eed4aa4

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/assets/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ubuntu
2+
3+
COPY dist/odyssey /usr/local/bin
4+
5+
# Copy licenses
6+
COPY LICENSE-* ./
7+
8+
# Copy the genesis files
9+
ADD etc/dev-genesis.json ./etc/dev-genesis.json
10+
ADD etc/odyssey-genesis.json ./etc/odyssey-genesis.json
11+
12+
EXPOSE 30303 30303/udp 9001 8545 9000 8546
13+
ENTRYPOINT ["/usr/local/bin/odyssey"]

.github/workflows/e2e.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
sudo apt update
3636
sudo apt install kurtosis-cli
3737
- name: Build Odyssey
38-
run: docker buildx build . --load -t ghcr.io/ithacaxyz/odyssey:latest
38+
run: |
39+
cargo build --profile release --locked --bin odyssey &&
40+
mkdir dist/ &&
41+
cp ./target/release/odyssey dist/odyssey &&
42+
docker buildx build . --load -f .github/assets/Dockerfile -t ghcr.io/ithacaxyz/odyssey:latest
3943
- name: Run enclave
4044
id: kurtosis
4145
run: |

0 commit comments

Comments
 (0)