This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
12
.gitea/workflows/sanity.yaml
Normal file
12
.gitea/workflows/sanity.yaml
Normal file
@@ -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
|
||||
8
sanity_check.py
Normal file
8
sanity_check.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user