2020-11-05 19:20:56 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: build-and-test
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2021-04-20 21:39:08 +00:00
|
|
|
image: rust:1.51
|
2020-11-05 19:20:56 +00:00
|
|
|
commands:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y cmake
|
2021-06-02 21:09:58 +00:00
|
|
|
- rustup component add rustfmt
|
2020-11-05 19:20:56 +00:00
|
|
|
- cargo build --verbose --all
|
|
|
|
- cargo test --verbose --all
|
2020-11-05 23:22:26 +00:00
|
|
|
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
when:
|
2021-09-06 22:18:06 +00:00
|
|
|
ref:
|
|
|
|
- refs/tags/v*
|
2021-09-06 23:58:05 +00:00
|
|
|
- refs/heads/master
|
2020-11-05 23:22:26 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2020-11-06 08:23:52 +00:00
|
|
|
repo: ghcr.io/projectmoon/chronicle-dicebot
|
2020-11-06 08:24:30 +00:00
|
|
|
registry: ghcr.io
|