Skip to content

Commit

Permalink
Add information about CI to README (use-ink#343)
Browse files Browse the repository at this point in the history
* added information about ci to readme

* added link to local ci docs

* Trim long line

Co-authored-by: Hernando Castano <hernando@hcastano.com>
  • Loading branch information
alvicsam and HCastano authored Sep 9, 2021
1 parent b3639c5 commit 9c159a5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,27 @@ More relevant links:

* Step 3: `cargo install --force cargo-contract`

### Docker Image
### Installation using Docker Image

If you prefer to use Docker instead we have a Docker image
[available on the Docker Hub](https://hub.docker.com/r/paritytech/contracts-ci-linux):

```bash
# Pull the latest image.
docker pull paritytech/contracts-ci-linux
# Pull the latest stable image.
docker pull paritytech/contracts-ci-linux:production

# Create a new contract in your current directory.
docker run --rm -it -v $(pwd):/sources paritytech/contracts-ci-linux \
docker run --rm -it -v $(pwd):/sources paritytech/contracts-ci-linux:production \
cargo +nightly contract new --target-dir /sources my_contract

# Build the contract. This will create the contract file under
# `my_contract/target/ink/my_contract.contract`.
docker run --rm -it -v $(pwd):/sources paritytech/contracts-ci-linux \
docker run --rm -it -v $(pwd):/sources paritytech/contracts-ci-linux:production \
cargo +nightly contract build --manifest-path=/sources/my_contract/Cargo.toml
```

If you want to reproduce other steps of CI process you can use the following
[guide](https://github.com/paritytech/scripts#reproduce-ci-locally).

## Usage

Expand Down

0 comments on commit 9c159a5

Please sign in to comment.