36 lines
No EOL
1.2 KiB
Bash
Executable file
36 lines
No EOL
1.2 KiB
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
|
|
|
|
if [ -f RELEASE.DEPS ]
|
|
then
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:builddeps docker_images/builddeps
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:builddeps
|
|
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:runtimedeps docker_images/runtimedeps
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:runtimedeps
|
|
|
|
rm RELEASE.DEPS
|
|
fi
|
|
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:stable $(pwd)
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:stable
|
|
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:latest docker_images/latest
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:latest
|
|
|
|
docker build -t git.zontreck.com/ariascreations/conanservermanager:installer docker_images/installer
|
|
docker push git.zontreck.com/ariascreations/conanservermanager:installer
|
|
|
|
fi |