mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
chore: add separate debug Docker build script
This commit is contained in:
19
scripts/publish-debug-image.sh
Normal file
19
scripts/publish-debug-image.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user