tenebrous-dicebot/.drone.yml

28 lines
531 B
YAML
Raw Normal View History

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