mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
20 lines
584 B
Bash
20 lines
584 B
Bash
#!/bin/bash
|
|
|
|
# Check if an argument was provided
|
|
if [ "$#" -eq 0 ]; then
|
|
echo "No arguments provided"
|
|
echo "Usage: scripts/build-current-arch.sh 20230826-1"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[profile.release]" >> Cargo.toml
|
|
echo "debug = true" >> Cargo.toml
|
|
|
|
TAG=$1-debug
|
|
echo "Building images, will tag for ghcr.io with $TAG-debug!"
|
|
docker build -t ghcr.io/revoltchat/base:latest -f Dockerfile.useCurrentArch .
|
|
docker build -t ghcr.io/revoltchat/server:$TAG - < crates/delta/Dockerfile
|
|
docker build -t ghcr.io/revoltchat/bonfire:$TAG - < crates/bonfire/Dockerfile
|
|
|
|
git restore Cargo.toml
|