ci-test/.drone.yml
KAAAsS 8fb900da5d
All checks were successful
continuous-integration/drone/push Build is passing
Fix drone release config
2021-02-05 19:12:42 +08:00

41 lines
828 B
YAML

kind: pipeline
type: docker
name: default
steps:
# Test
- name: test
image: rust
environment:
SECRET_INPUT:
from_secret: secret_input
commands:
- cargo build --verbose --all
- cargo test --verbose --all --lib
# Simple test
- 'echo "Input: $SECRET_INPUT"'
- cargo run $SECRET_INPUT > output
- 'echo "Output: " && cat output'
# Release
- name: build-release
image: rust
commands:
- cargo build --release
when:
event: tag
- name: gitea-release
image: plugins/gitea-release
settings:
base_url: https://git.kaaass.net
api-key:
from_secret: gitea_token
title: Release
files:
- target/release/ci-test
checksum:
- md5
- sha1
- sha256
when:
event: tag