chgk_ledb/.drone.yml

40 lines
846 B
YAML
Raw Permalink Normal View History

2022-10-12 15:01:38 +00:00
kind: pipeline
2023-08-05 22:09:32 +00:00
type: docker
2022-10-12 15:01:38 +00:00
name: default
steps:
- name: test
image: rust:1-alpine
commands:
2022-10-12 15:07:50 +00:00
- apk add --no-cache musl-dev
- cargo build --verbose --all-features --all
- cargo test --verbose --all-features --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 10:46:21 +00:00
trigger:
event:
- push
2023-03-29 09:59:35 +00:00
---
kind: pipeline
2023-08-05 22:19:19 +00:00
type: docker
2023-03-29 09:59:35 +00:00
name: publish
steps:
- name: push
image: rust:1-alpine
commands:
2023-03-29 10:31:23 +00:00
- apk add --no-cache musl-dev
2023-08-18 06:33:42 +00:00
- cargo build -p chgk_ledb_lib --all-features
- cargo publish --registry gitea -p chgk_ledb_lib --all-features
2023-03-29 09:59:35 +00:00
environment:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
2023-03-29 10:46:21 +00:00
CARGO_REGISTRIES_GITEA_INDEX: https://gitea.b4tman.ru/b4tman/_cargo-index.git
2023-03-29 09:59:35 +00:00
CARGO_REGISTRIES_GITEA_TOKEN:
2023-03-29 10:46:21 +00:00
from_secret: cargo_gitea_token
2023-03-29 09:59:35 +00:00
trigger:
event:
- tag