Menu
Public repository / 76b668ab797c5342c1cccf4955c8f1943cba1bb7
AkurAI-Drive / .akurai.yml
Latest change 718893d9a0e51023ae117eb7ecb60ba8698278ab - fix(ci): package site assets at archive root by AkurAI Agent
version: 1
jobs:
- name: verify
executor: native
branches: [master]
run:
- RUSTUP_HOME=/home/olafurbui/.rustup CARGO_HOME=/home/olafurbui/.cargo PATH=/home/olafurbui/.cargo/bin:/usr/bin:/bin cargo fmt --manifest-path backend/Cargo.toml --all -- --check
- RUSTUP_HOME=/home/olafurbui/.rustup CARGO_HOME=/home/olafurbui/.cargo PATH=/home/olafurbui/.cargo/bin:/usr/bin:/bin cargo clippy --manifest-path backend/Cargo.toml --all-targets --all-features -- -D warnings
- RUSTUP_HOME=/home/olafurbui/.rustup CARGO_HOME=/home/olafurbui/.cargo PATH=/home/olafurbui/.cargo/bin:/usr/bin:/bin cargo test --manifest-path backend/Cargo.toml --all
- name: package
needs: [verify]
executor: native
branches: [master]
run:
- RUSTUP_HOME=/home/olafurbui/.rustup CARGO_HOME=/home/olafurbui/.cargo PATH=/home/olafurbui/.cargo/bin:/usr/bin:/bin cargo build --manifest-path backend/Cargo.toml --release --target x86_64-unknown-linux-musl
- tar -czf site-frontend.tar.gz -C site/frontend .
artifacts:
- backend/target/x86_64-unknown-linux-musl/release/akurai-drive-api
- site-frontend.tar.gz
- name: deploy
needs: [package]
executor: native
environment: production
approval: true
branches: [master]
run:
- ./backend/deploy.sh --binary backend/target/x86_64-unknown-linux-musl/release/akurai-drive-api
- DRIVE_SITE_SOURCE=site-frontend.tar.gz DRIVE_RELEASE="${AKURAI_COMMIT_SHA:-build}" ./site/deploy.sh