2020-11-05 19:20:56 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: build-and-test
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: rust:1.47
|
|
|
|
commands:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y cmake
|
|
|
|
- cargo build --verbose --all
|
|
|
|
- cargo test --verbose --all
|
2020-11-05 23:22:26 +00:00
|
|
|
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2020-11-05 23:32:22 +00:00
|
|
|
repo: projectmoon/chronicle-dicebot
|
2020-11-05 23:22:26 +00:00
|
|
|
registry: gchr.io
|