#!/usr/bin/env bash # Create all the different builds for refractr set -x version=$(cat Cargo.toml | grep -m1 version | awk -F' ' '{print $3}' | sed 's|"||g') # docker builds cargo clean docker build -t refractr:$version . docker tag refractr:$version refractr:$latest # rust build cargo build cargo build --release