2024-01-26 13:21:59 +00:00
|
|
|
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"
|
2024-01-26 13:21:59 +00:00
|
|
|
|
|
|
|
steps:
|
2024-12-10 13:42:16 +00:00
|
|
|
build_release:
|
2024-01-26 13:21:59 +00:00
|
|
|
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
|
2024-10-16 10:27:52 +00:00
|
|
|
- *install_binstall
|
2024-03-06 16:03:10 +00:00
|
|
|
- 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
|
2024-03-06 16:03:10 +00:00
|
|
|
when:
|
2024-04-02 09:43:45 +00:00
|
|
|
- event: tag
|
2024-03-06 16:03:10 +00:00
|
|
|
|
|
|
|
publish_release:
|
2024-10-15 13:20:32 +00:00
|
|
|
image: woodpeckerci/plugin-release
|
2024-03-06 16:03:10 +00:00
|
|
|
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
|
2024-03-06 16:03:10 +00:00
|
|
|
|
2024-01-26 13:21:59 +00:00
|
|
|
services:
|
|
|
|
database:
|
2024-12-09 11:51:23 +00:00
|
|
|
image: postgres:16-alpine
|
2024-01-26 13:21:59 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: ibis
|
2024-04-02 09:43:45 +00:00
|
|
|
POSTGRES_PASSWORD: password
|