diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml new file mode 100644 index 0000000..f788470 --- /dev/null +++ b/.woodpecker/build.yml @@ -0,0 +1,23 @@ +version: 1 +when: + - event: [pull_request] + - event: push + branch: + - ${CI_REPO_DEFAULT_BRANCH} + - release/* + - fix/* +steps: + test: + image: rust:alpine + commands: + - cargo clippy + - cargo test --verbose --package bot-coreutils + - cargo test --verbose --package bot-database + - cargo test --verbose + + build: + image: rust:alpine + commands: + - cargo build + when: + - event: [pull_request] diff --git a/.woodpecker/container.yml b/.woodpecker/container.yml new file mode 100644 index 0000000..c177369 --- /dev/null +++ b/.woodpecker/container.yml @@ -0,0 +1,19 @@ +version: 1 +when: + - event: [tag] + branch: + - ${CI_REPO_DEFAULT_BRANCH} +steps: + build: + image: woodpeckerci/plugin-docker-buildx + secrets: [forgejo_token] + settings: + dockerfile: Containerfile + tag: ${CI_COMMIT_TAG##v} + repo: git.trivernis.net/trivernis/2b-rs + registry: git.trivernis.net + platforms: linux/amd64 + username: woodpeckerbot + password: + from_secret: forgejo_token + diff --git a/Cargo.lock b/Cargo.lock index 441b8bc..916f3f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3538,7 +3538,7 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tobi-rs" -version = "0.10.4" +version = "0.11.0" dependencies = [ "animethemes-rs", "aspotify",