Merge branch 'main' into prod
Some checks failed
Deploy to Production / deploy (push) Failing after 1s

This commit is contained in:
2025-07-30 14:12:05 +03:00
2 changed files with 11 additions and 1 deletions

View File

@@ -39,10 +39,19 @@ jobs:
- name: Run new container
run: |
PORT=5005
CONTAINER_ID=$(docker ps --format '{{.ID}} {{.Ports}}' | grep ":$PORT->" | awk '{print $1}')
if [ -n "$CONTAINER_ID" ]; then
echo "Stopping container using port $PORT..."
docker stop "$CONTAINER_ID"
docker rm "$CONTAINER_ID"
fi
docker run -d \
--name olaper \
--restart always \
-p 5005:5005 \
-p ${PORT}:5005 \
-e SECRET_KEY=${{ secrets.SECRET_KEY }} \
-e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \
-v olaper_data:/opt/olaper/data \