Compare commits

...

4 Commits

Author SHA1 Message Date
b3e1a5c88c Merge branch 'main' into prod
Some checks failed
Deploy to Production / deploy (push) Failing after 1s
2025-07-30 14:12:05 +03:00
8e757afe39 fix testing v3
All checks were successful
Test Build / test-build (push) Successful in 3s
2025-07-29 19:52:18 +03:00
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 11 additions and 1 deletions

View File

@@ -39,10 +39,19 @@ 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 olaper_data:/opt/olaper/data \ -v olaper_data:/opt/olaper/data \

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