feat: add drone.yml
This commit is contained in:
40
.drone.yml
Normal file
40
.drone.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test-on-amd64
|
||||
|
||||
platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build-release
|
||||
image: rust:1.91
|
||||
commands:
|
||||
- cargo build --verbose --workspace --release
|
||||
- name: test
|
||||
image: rust:1.91
|
||||
commands:
|
||||
- cargo test --verbose --workspace
|
||||
- name: lint
|
||||
image: rust:1.91
|
||||
commands:
|
||||
- rustup component add clippy
|
||||
- cargo clippy --all-targets --all-features
|
||||
- name: push-binary-release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://gitea.lardenois.cc
|
||||
api_key:
|
||||
from_secret: gitea-package
|
||||
files:
|
||||
- target/release/pg-instance-handler
|
||||
title: "Release ${DRONE_TAG:-v${DRONE_BUILD_NUMBER}}"
|
||||
note: "Automated release from commit ${DRONE_COMMIT_SHA}"
|
||||
checksum:
|
||||
- sha256
|
||||
when:
|
||||
event: tag
|
||||
status: success
|
||||
depends_on:
|
||||
- build-release
|
||||
- test
|
||||
- lint
|
||||
Reference in New Issue
Block a user