Files
stoatchat/scripts/publish-debug-image.sh
2024-04-08 22:46:35 +01:00

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