tictactoe/.drone.yml
shimun d9740a28a4
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
build musl images
2020-06-06 14:39:18 +02:00

33 lines
579 B
YAML

kind: pipeline
name: default
steps:
- name: test
image: rust:1.38.0-alpine
commands:
- cargo test
- name: build_relase
image: rust:1.38.0-alpine
commands:
- cargo install --path . --root . -f
- strip bin/tictactoe
- tar cvzf ttt.tar.gz bin src Cargo.*
when:
event:
- tag
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_tkn
base_url:
from_secret: gitea_url
files:
- ttt.tar.gz
checksum:
- md5
- sha512
when:
event:
- tag