Menu
Public repository / master
AkurAI-Drive / .akurai.yml
Latest change ef17532dc9d989dfc0e023bf7dc1d65272366cb7 - site: capture the live Framework i18n site; deploy frontend + backend by AkurAI Agent
version: 1
jobs:
- name: lint-config
executor: native
branches: [master]
run:
- sh scripts/test-lint-akurai-yml.sh
- sh scripts/test-lint-sibling-deps.sh
- sh scripts/lint-akurai-yml.sh .akurai.yml
- sh scripts/lint-sibling-deps.sh
- name: verify
needs: [lint-config]
executor: native
branches: [master]
run:
- rm -rf ../AkurAI-Framework; git clone --quiet --no-checkout $AKURAI_BUILD_DATA/hosted/AkurAI-Framework.git ../AkurAI-Framework; git -C ../AkurAI-Framework checkout --quiet --detach 6773bf3b2333914e30899245eaf1e789211fa835; test "$(git -C ../AkurAI-Framework rev-parse HEAD)" = 6773bf3b2333914e30899245eaf1e789211fa835
- rm -rf ../akurai-log; git clone --quiet --no-checkout $AKURAI_BUILD_DATA/hosted/akurai-log.git ../akurai-log; git -C ../akurai-log checkout --quiet --detach 3c855deb0cc56ae117c336ca1f5ffd8ab54c710e; test "$(git -C ../akurai-log rev-parse HEAD)" = 3c855deb0cc56ae117c336ca1f5ffd8ab54c710e
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo fmt --manifest-path backend/Cargo.toml --all -- --check
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo clippy --manifest-path backend/Cargo.toml --all-targets --all-features -- -D warnings
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.cargo/bin:/usr/bin:/bin cargo test --manifest-path backend/Cargo.toml --all
- name: package
needs: [verify]
executor: native
branches: [master]
run:
- RUSTUP_HOME=$AKURAI_HOST_HOME/.rustup CARGO_HOME=$AKURAI_HOST_HOME/.cargo PATH=$AKURAI_HOST_HOME/.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 backend
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