change script to call docker compose

This commit is contained in:
2024-09-22 14:13:38 +02:00
parent 2ce9a693f9
commit b6e0c6eb31
3 changed files with 40 additions and 46 deletions

15
deploy.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
REPO_URL="https://github.com/juli0n21/pwa-player.git"
REPO_DIR=$(pwd)
if [ -d "$REPO_DIR/.git" ]; then
echo "Pulling latest changes from $REPO_URL..."
git -C "$REPO_DIR" pull
else
echo "Cloning repository $REPO_URL..."
git clone "$REPO_URL" "$REPO_DIR"
fi
docker compose up --build -d