Update 'README.md'
This commit is contained in:
parent
522ac8258a
commit
ccf45ac79e
31
README.md
31
README.md
|
@ -1,2 +1,33 @@
|
||||||
# docker-rusty-moon
|
# docker-rusty-moon
|
||||||
|
|
||||||
|
Docker image intended for Rust apps cross-compilation.
|
||||||
|
Based on [ubuntu:latest](https://hub.docker.com/_/ubuntu) (latest LTS official image), it provides latest **nightly** Rust with the following targets:
|
||||||
|
- x86_64-unknown-linux-gnu
|
||||||
|
- x86_64-pc-windows-gnu
|
||||||
|
|
||||||
|
## Build
|
||||||
|
To build image locally:
|
||||||
|
`docker build https://inex.dev/lnkr/docker-rusty-moon.git -t lnkr/rust:latest`
|
||||||
|
|
||||||
|
Image is available at [drone.lnkr.dev](https://drone.lnkr.dev/) drone.io instance as `lnkr/rust:latest` and rebuilds on a daily basis.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
Use this while defining steps:
|
||||||
|
```
|
||||||
|
image: lnkr/rust
|
||||||
|
pull: never
|
||||||
|
```
|
||||||
|
### .drone.yml example
|
||||||
|
```
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
type: docker
|
||||||
|
steps:
|
||||||
|
- name: build & test
|
||||||
|
image: lnkr/rust
|
||||||
|
pull: never
|
||||||
|
commands:
|
||||||
|
- cargo build --target x86_64-unknown-linux-gnu
|
||||||
|
- cargo build --target x86_64-pc-windows-gnu
|
||||||
|
- cargo test
|
||||||
|
```
|
Loading…
Reference in a new issue