1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-12-23 19:11:24 +00:00
ibis/.woodpecker.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

variables:
2024-12-10 13:42:16 +00:00
- &rust_image "rust:1.81-slim"
2024-03-29 13:47:53 +00:00
- &install_binstall "wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz && tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz && cp cargo-binstall /usr/local/cargo/bin"
2024-12-09 11:51:23 +00:00
- &install_cargo_leptos "cargo-binstall -y cargo-leptos@0.2.24"
steps:
2024-12-10 13:42:16 +00:00
build_release:
image: *rust_image
environment:
CARGO_HOME: .cargo_home
commands:
- apt-get update
2024-12-10 13:42:16 +00:00
- apt-get install postgresql -y --no-install-recommends --no-install-suggests npm
2024-12-10 10:21:13 +00:00
- npm install
- *install_binstall
- rustup target add wasm32-unknown-unknown
2024-10-29 08:29:46 +00:00
- *install_cargo_leptos
2024-03-08 13:55:55 +00:00
- export PATH="$PATH:$(pwd)/.cargo_home/bin/"
- ./scripts/build_release.sh
when:
2024-04-02 09:43:45 +00:00
- event: tag
publish_release:
2024-10-15 13:20:32 +00:00
image: woodpeckerci/plugin-release
settings:
files:
- ibis.gz
title: ${CI_COMMIT_TAG##v}
api-key:
from_secret: github_token
when:
2024-04-02 09:43:45 +00:00
- event: tag
services:
database:
2024-12-09 11:51:23 +00:00
image: postgres:16-alpine
environment:
POSTGRES_USER: ibis
2024-04-02 09:43:45 +00:00
POSTGRES_PASSWORD: password