Skip to content

Commit

Permalink
copy only release inside container
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckram123 committed Dec 20, 2023
1 parent 4df3523 commit 0f0e46d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/wasm-all-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ docker cp Cargo.lock with_code:/code
docker cp ./contracts with_code:/code
docker cp ./packages with_code:/code
# Copy cache if any
docker cp ./target with_code:/code || true
docker cp ./target/release/build with_code:/target/release/build || true
docker cp ./target/release/deps with_code:/target/release/deps || true
docker cp /usr/local/cargo/registry with_code:/usr/local/cargo/registry || true
# Run the build
docker run --name build_with_code --volumes-from with_code ${abstract_image}:0.15.0
Expand Down Expand Up @@ -85,7 +86,8 @@ fi
docker cp Cargo.toml modules_with_code:/code
docker cp Cargo.lock modules_with_code:/code
# Copy cache if any
docker cp ./target modules_with_code:/code || true
docker cp ./target/release/build modules_with_code:/target/release/build || true
docker cp ./target/release/build modules_with_code:/target/release/deps || true
docker cp /usr/local/cargo/registry modules_with_code:/usr/local/cargo/registry || true
# copy code into this volume
docker cp ./contracts modules_with_code:/code
Expand Down

0 comments on commit 0f0e46d

Please sign in to comment.