gemfreely/.drone.yml

30 lines
618 B
YAML
Raw Permalink Normal View History

kind: pipeline
name: build-and-test
steps:
- name: test
2024-03-21 17:22:53 +00:00
image: git.agnos.is/projectmoon/gemfreely-build
commands:
2024-03-21 14:23:12 +00:00
- cargo build
- cargo test --verbose
2024-03-21 17:10:01 +00:00
- cargo deny check licenses
2024-03-22 15:53:40 +00:00
- name: build-release
image: git.agnos.is/projectmoon/gemfreely-build
when:
ref:
- refs/tags/v*
commands:
2024-03-22 16:10:54 +00:00
- cargo build --config .cargo/static-build.toml --release
2024-03-22 15:53:40 +00:00
- name: push-release
image: plugins/gitea-release
when:
ref:
- refs/tags/v*
settings:
2024-03-22 16:10:54 +00:00
api_key:
from_secret: release_push_key
2024-03-22 15:53:40 +00:00
base_url: https://git.agnos.is/
files: target/x86_64-unknown-linux-gnu/release/gemfreely