Compare commits

..

5 Commits

Author SHA1 Message Date
013c9c5a15 fix prod v1
All checks were successful
Deploy to Production / deploy (push) Successful in 3s
2025-07-30 14:25:48 +03:00
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 16 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ jobs:
steps:
- name: Prepare workspace
run: |
rm -rf /tmp/olaper
rm -rf /tmp/olaper || true
mkdir -p /tmp/olaper
cd /tmp/olaper
apk update && apk add openssh docker-cli
@@ -27,14 +27,21 @@ jobs:
- name: Create volume (if not exists)
run: |
if ! docker volume inspect olaper_data >/dev/null 2>&1; then
docker volume create olaper_data
fi
docker volume create olaper_data || true
- name: Stop old container (if running)
- name: Stop and remove old containers
run: |
if [ "$(docker ps -q -f name=olaper)" ]; then
docker stop olaper && docker rm olaper
# Stop and remove container named olaper if exists
docker stop olaper || true
docker rm olaper || true
# Stop and remove any container using port 5005
PORT=5005
CONTAINER_IDS=$(docker ps -q --filter "publish=$PORT")
if [ -n "$CONTAINER_IDS" ]; then
echo "Stopping containers using port $PORT..."
docker stop $CONTAINER_IDS
docker rm $CONTAINER_IDS
fi
- name: Run new container
@@ -49,4 +56,4 @@ jobs:
olaper:latest
- name: Cleanup
run: rm -rf /tmp/olaper
run: rm -rf /tmp/olaper || true

View File

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