ConanServerManager/compile.sh
2024-05-24 16:13:27 -07:00

25 lines
No EOL
721 B
Bash
Executable file

#!/bin/bash
if [ ! -d out ]
then
mkdir out
fi
flutter build linux
dart compile exe -o out/server bin/server.dart
rsync -a --progress -h --delete build/linux/x64/release/bundle/ out/client/
if [ -f RELEASE ]
then
docker login git.zontreck.com
docker build -t git.zontreck.com/zontreck/conanservermanager:stable $(pwd)
docker push git.zontreck.com/zontreck/conanservermanager:stable
docker build -t git.zontreck.com/zontreck/conanservermanager:installer docker_images/installer
docker push git.zontreck.com/zontreck/conanservermanager:installer
docker build -t git.zontreck.com/zontreck/conanservermanager:latest docker_images/latest
docker push git.zontreck.com/zontreck/conanservermanager:latest
fi