chgk_ledb/.drone.yml

34 lines
675 B
YAML
Raw Normal View History

2022-10-12 15:01:38 +00:00
kind: pipeline
name: default
steps:
- name: test
image: rust:1-alpine
commands:
2022-10-12 15:07:50 +00:00
- apk add --no-cache musl-dev
2022-10-12 15:01:38 +00:00
- cargo build --verbose --all
- cargo test --verbose --all
2023-03-13 14:10:09 +00:00
environment:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
2022-10-12 15:01:38 +00:00
2023-03-29 09:59:35 +00:00
---
kind: pipeline
name: publish
steps:
- name: push
image: rust:1-alpine
commands:
- cargo publish --registry gitea -p chgk_ledb_lib
environment:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
CARGO_REGISTRIES_GITEA_INDEX: https://gitea.b4tman.ru/b4tman/_cargo-index
CARGO_REGISTRIES_GITEA_TOKEN:
from_secret: gitea_password
trigger:
branch:
- master
event:
- tag