2024-01-26 13:21:59 +00:00
|
|
|
variables:
|
2024-10-02 12:47:44 +00:00
|
|
|
- &rust_image "rust:1.81"
|
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-10-16 10:18:17 +00:00
|
|
|
- &install_trunk "cargo-binstall -y trunk@0.21.1"
|
2024-01-26 13:21:59 +00:00
|
|
|
steps:
|
2024-03-06 16:03:10 +00:00
|
|
|
build_release:
|
|
|
|
image: *rust_image
|
|
|
|
environment:
|
|
|
|
CARGO_HOME: .cargo_home
|
|
|
|
commands:
|
2024-10-16 10:18:17 +00:00
|
|
|
- *install_binstall
|
2024-03-06 16:03:10 +00:00
|
|
|
- rustup target add wasm32-unknown-unknown
|
2024-10-16 10:18:17 +00:00
|
|
|
- *install_trunk
|
2024-03-08 13:55:55 +00:00
|
|
|
- export PATH="$PATH:$(pwd)/.cargo_home/bin/"
|
2024-10-16 09:42:24 +00:00
|
|
|
- ls -lah assets
|
2024-10-16 09:45:53 +00:00
|
|
|
- ls -lah assets/dist || true
|
2024-03-08 13:55:55 +00:00
|
|
|
- ./scripts/build_release.sh
|
2024-10-16 09:45:53 +00:00
|
|
|
- ls -lah assets/dist || true
|
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:
|
|
|
|
image: postgres:15.2-alpine
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: ibis
|
2024-04-02 09:43:45 +00:00
|
|
|
POSTGRES_PASSWORD: password
|