From 1195dcdf3a91c1db28f00cdbc334cd800e88f912 Mon Sep 17 00:00:00 2001 From: serhiimosiiash Date: Fri, 19 Dec 2025 14:11:56 +0200 Subject: [PATCH] Reset CI: Sanity Check --- .gitea/workflows/antigravity-ops.yaml | 55 --------------------------- .gitea/workflows/audit-report.yaml | 25 ------------ .gitea/workflows/sanity.yaml | 12 ++++++ sanity_check.py | 8 ++++ 4 files changed, 20 insertions(+), 80 deletions(-) delete mode 100644 .gitea/workflows/antigravity-ops.yaml delete mode 100644 .gitea/workflows/audit-report.yaml create mode 100644 .gitea/workflows/sanity.yaml create mode 100644 sanity_check.py diff --git a/.gitea/workflows/antigravity-ops.yaml b/.gitea/workflows/antigravity-ops.yaml deleted file mode 100644 index c9d9a52..0000000 --- a/.gitea/workflows/antigravity-ops.yaml +++ /dev/null @@ -1,55 +0,0 @@ -name: Antigravity DevSecOps -run-name: Deploying Antigravity Agent 🚀 - -on: - push: - branches: - - main - -jobs: - # 1. ЕТАП БЕЗПЕКИ (Тимчасово вимкнено для першого запуску) - # security-audit: - # runs-on: ubuntu-latest - # steps: - # - name: Check out repository code - # uses: actions/checkout@v3 - # - name: Gitleaks Scan - # uses: gitleaks/gitleaks-action@v2 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # continue-on-error: true - - # 2. ЕТАП ДЕПЛОЮ (Build & Run) - deploy-agent: - # needs: security-audit <-- Вимкнено залежність - runs-on: ubuntu-latest - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - - name: Build Docker Image - run: | - echo "🏗️ Building Antigravity Image..." - docker build -t antigravity-core:latest . - - - name: Deploy Container - run: | - echo "🚀 Deploying to Server Infrastructure..." - - # Зупиняємо старий контейнер (якщо є) - docker rm -f antigravity || true - - # УВАГА: Тут змінено назву мережі на правильну! - docker run -d \ - --name antigravity \ - --restart unless-stopped \ - --network stack_app_net \ - -e DB_HOST=postgres \ - -e DB_USER=postgres \ - -e DB_PASS=mysecretpassword \ - -e DB_NAME=postgres \ - -e GRAPHITI_URL=http://graphiti:8000 \ - antigravity-core:latest - - - name: Cleanup - run: docker image prune -f \ No newline at end of file diff --git a/.gitea/workflows/audit-report.yaml b/.gitea/workflows/audit-report.yaml deleted file mode 100644 index 7b1b24e..0000000 --- a/.gitea/workflows/audit-report.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Infrastructure Audit -run-name: 📊 Running Watchtower & Tools Audit - -on: - push: - branches: - - main - -jobs: - server-report: - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.9' - - - name: Install Dependencies - run: pip install -r requirements.txt - - - name: Run Audit Script - run: python audit.py \ No newline at end of file diff --git a/.gitea/workflows/sanity.yaml b/.gitea/workflows/sanity.yaml new file mode 100644 index 0000000..f62a595 --- /dev/null +++ b/.gitea/workflows/sanity.yaml @@ -0,0 +1,12 @@ +name: Sanity Check +run-name: 🟢 System Health Check +on: [push] +jobs: + health-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + - run: python sanity_check.py diff --git a/sanity_check.py b/sanity_check.py new file mode 100644 index 0000000..ef77c66 --- /dev/null +++ b/sanity_check.py @@ -0,0 +1,8 @@ +import sys +import datetime +print("="*40) +print(f"🚀 SYSTEM ONLINE") +print(f"🐍 Python: {sys.version.split()[0]}") +print(f"⏰ Time: {datetime.datetime.now()}") +print("✅ SUCCESS: Runner is working!") +print("="*40)