Compare commits

...

2 Commits

Author SHA1 Message Date
5100c5d17c v1
All checks were successful
Test Build / test-build (push) Successful in 3s
2025-07-29 19:43:11 +03:00
81d33bebef test fix v1 2025-07-29 19:42:55 +03:00
2 changed files with 12 additions and 1 deletions

View File

@@ -24,10 +24,20 @@ jobs:
- name: Run new container - name: Run new container
run: | 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 \ docker run -d \
--name olaper \ --name olaper \
--restart always \ --restart always \
-p 5005:5005 \ -p ${PORT}:5005 \
-e SECRET_KEY=${{ secrets.SECRET_KEY }} \ -e SECRET_KEY=${{ secrets.SECRET_KEY }} \
-e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \ -e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \
-v mholaper_data:/app/data \
olaper:latest olaper:latest

View File

@@ -39,6 +39,7 @@ jobs:
docker run -d \ docker run -d \
--name olaper_test \ --name olaper_test \
-p 5050:5005 \ -p 5050:5005 \
-v /home/master/olaper_debug/data:/opt/olaper/data \
-e SECRET_KEY=${{ secrets.SECRET_KEY }} \ -e SECRET_KEY=${{ secrets.SECRET_KEY }} \
-e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \ -e ENCRYPTION_KEY=${{ secrets.ENCRYPTION_KEY }} \
olaper:test olaper:test