chore: lock Rust version to 1.77.2 (related to #341)

This commit is contained in:
Paul Makles
2024-09-09 12:49:09 +01:00
parent 70bdeecf77
commit 2433fa661a
6 changed files with 64 additions and 53 deletions

View File

@@ -1,5 +1,8 @@
#!/usr/bin/env bash
# fail asap
set -e
# Check if an argument was provided
if [ $# -eq 0 ]; then
echo "No arguments provided"
@@ -10,8 +13,10 @@ if [ $# -eq 0 ]; then
fi
DEBUG=$2
echo "[profile.release]" >> Cargo.toml
echo "debug = $2" >> Cargo.toml
if [ "$DEBUG" = "true" ]; then
echo "[profile.release]" >> Cargo.toml
echo "debug = true" >> Cargo.toml
fi
TAG=$1-debug
echo "Building images, will tag for ghcr.io with $TAG!"
@@ -19,7 +24,9 @@ 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
if [ "$DEBUG" = "true" ]; then
git restore Cargo.toml
fi
docker push ghcr.io/revoltchat/server:$TAG
docker push ghcr.io/revoltchat/bonfire:$TAG