Feature: Add Watchtower Audit
Some checks failed
Infrastructure Audit / audit (push) Failing after 13s
Some checks failed
Infrastructure Audit / audit (push) Failing after 13s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user