mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-29 08:26:28 +00:00
bae96c0431
* Proposal for monitoring responsibilities * added an architecture diagram for Prometheus * install graphviz * Only run the diagrams action when someone commits a diagram * Filled out the architecture README * Install node Prometheus Node Exporter on all hosts Co-authored-by: Chris Cowley <chris.cowley@fr.clara.net>
38 lines
900 B
YAML
38 lines
900 B
YAML
---
|
|
name: Arcitecture Diagrams
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'architecture/**.py'
|
|
|
|
jobs:
|
|
build-archi-diagrams:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- name: Git Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.8
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt -y install graphviz
|
|
python -m pip install --upgrade pip
|
|
pip install diagrams
|
|
- name: Build diagrams
|
|
run: |
|
|
for file in $(find architecture/ -type f -name "*.py")
|
|
do
|
|
python $file
|
|
done
|
|
mkdir artifacts; mv *.png artifacts/
|
|
- name: Upload diagram images
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: diagrams-png
|
|
path: artifacts/*.png
|