chgk_ledb/.drone.yml
Dmitry 851058245d
All checks were successful
continuous-integration/drone/push Build is passing
ci: fix pipeline build
2023-08-06 17:03:18 +03:00

43 lines
1.0 KiB
YAML

kind: pipeline
type: docker
name: default
steps:
- name: test
image: rust:1-alpine
commands:
- apk add --no-cache musl-dev
- cargo build -p chgk_ledb
- cargo build -p chgk_ledb_lib --features sync,convert,source
- cargo build -p chgk_ledb_lib --features async,convert_async,source_async
- cargo test -p chgk_ledb_lib --features sync,convert,source
- cargo test -p chgk_ledb_lib --features async,convert_async,source_async
environment:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
trigger:
event:
- push
---
kind: pipeline
type: docker
name: publish
steps:
- name: push
image: rust:1-alpine
commands:
- apk add --no-cache musl-dev
- cargo build -p chgk_ledb_lib
- 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.git
CARGO_REGISTRIES_GITEA_TOKEN:
from_secret: cargo_gitea_token
trigger:
event:
- tag