update drone

This commit is contained in:
shimunn 2019-09-06 13:41:15 +02:00
parent c60755aafb
commit ec52dbe75b
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -1,12 +1,22 @@
pipeline:
build:
image: rust:1.30-slim
commands:
- cargo test --release
- rustup target add x86_64-unknown-linux-musl
- cargo build --release --target x86_64-unknown-linux-musl
docker:
image: plugins/docker
repo: repo.shimun.net/shimun/brownpaper
registry: repo.shimun.net
secrets: ["docker_username","docker_password"]
kind: pipeline
name: default
steps:
- name: build
image: rust:1.37.0
commands:
- cargo test
- rustup target add x86_64-unknown-linux-musl
- cargo build --release --target x86_64-unknown-linux-musl
- name: dockerize
image: plugins/docker
settings:
repo: repo.shimun.net/shimun/brownpaper
registry: repo.shimun.net
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- tag