diff --git a/.woodpecker.yml b/.woodpecker/data-import.yml similarity index 100% rename from .woodpecker.yml rename to .woodpecker/data-import.yml diff --git a/.woodpecker/motis-proxy-release.yml b/.woodpecker/motis-proxy-release.yml new file mode 100644 index 00000000..f68ff92e --- /dev/null +++ b/.woodpecker/motis-proxy-release.yml @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2024 Jonah BrĂ¼chert +# SPDX-License-Identifier: CC0-1.0 + +when: + - event: tag + +steps: + build-release-amd64: + image: docker.io/rust:alpine + commands: + - apk add musl-dev + - cd motis-proxy && cargo build --release + + upload: + image: docker.io/woodpeckerci/plugin-github-release + settings: + files: + - motis-proxy/target/release/motis-proxy + title: ${CI_COMMIT_TAG##v} + api-key: + from_secret: github_release_token