refractr/build

15 lines
324 B
Text
Raw Normal View History

2025-03-02 16:13:44 -07:00
#!/usr/bin/env bash
# Create all the different builds for refractr
2025-03-02 16:13:44 -07:00
version=$(cat Cargo.toml | grep -m1 version | awk -F' ' '{print $3}' | sed 's|"||g')
2025-03-02 18:33:33 -07:00
cargo update
cargo clean
2025-03-02 16:13:44 -07:00
# docker builds
docker build -t refractr:$version .
docker tag refractr:$version refractr:latest
2025-03-02 16:13:44 -07:00
# rust build
cargo build
cargo build --release