Feature: Add Watchtower Audit
Some checks failed
Infrastructure Audit / audit (push) Failing after 13s

This commit is contained in:
serhiimosiiash
2025-12-19 14:23:39 +02:00
parent 367d39fb03
commit 10a440aaab
2 changed files with 33 additions and 52 deletions

View File

@@ -1,21 +1,20 @@
name: Sanity Check
run-name: 🟢 System Health Check
name: Infrastructure Audit
run-name: 📊 Server Status Report
on: [push]
jobs:
health-check:
audit:
runs-on: ubuntu-latest
container:
image: docker:cli # Використовуємо образ з Docker клієнтом!
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Даємо доступ до докера хоста
steps:
- name: 📥 Check out repository
uses: actions/checkout@v3
- name: 🐍 Run Sanity Script
- name: 🐍 Run Audit Script
# Встановлюємо python прямо в docker контейнері
run: |
# Встановлюємо python3, якщо його немає (на всяк випадок)
if ! command -v python3 &> /dev/null; then
echo "Installing Python..."
apt-get update && apt-get install -y python3
fi
# Запускаємо скрипт
python3 sanity_check.py
apk add --no-cache python3
python3 audit.py