mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-06 14:40:12 +00:00
23 lines
428 B
Bash
23 lines
428 B
Bash
#!/bin/bash
|
|
|
|
# Exit the script as soon as a command fails
|
|
set -e
|
|
|
|
echo "Switching to the main branch..."
|
|
git checkout main
|
|
|
|
echo "Updating submodules..."
|
|
git submodule update --init --recursive
|
|
|
|
echo "Updating console..."
|
|
cd console
|
|
git checkout main
|
|
git pull
|
|
cd ..
|
|
|
|
echo "Building Docker images..."
|
|
docker-compose build console
|
|
docker-compose build application
|
|
|
|
echo "Update completed. Run \`docker-compose up -d\` to launch!"
|