diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1a88afe --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,38 @@ +platform: linux/arm64 + +pipeline: + unitTests: + image: rust:1.54.0-slim + commands: + - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential + - cargo build --all + #- cargo test --all + + buildRelease: + when: + event: tag + tag: v* + image: rust:1.54.0-slim + commands: + - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential + - cargo build --release + - "dir=$DRONE_REPO_NAME-$DRONE_TAG-${DRONE_ARCH/'/'/-}" + - "mkdir $dir" + - cp target/release/mxmonzo $dir/ + - tar cvf $dir.tar.gz $dir + - mkdir dist + - mv $dir.tar.gz dist/ + + uploadRelease: + when: + event: tag + tag: v* + image: plugins/gitea-release + base_url: https://bics.ga + checksum: + - sha256 + files: + - dist/* + secrets: + - source: gitea_token + target: plugin_api_key