diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..71c861f --- /dev/null +++ b/.drone.yml @@ -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