mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
20 lines
578 B
Bash
Executable File
20 lines
578 B
Bash
Executable File
#!/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!"
|
|
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
|