Files
homelab-infra/.gitea/workflows/ansible-core-secrets.yml
T
karpenokandCursor 93958f93e2
ansible-core-mon / deploy (push) Successful in 20s
ansible-core-secrets / deploy (push) Successful in 27s
ansible-rus-central / deploy (push) Successful in 59s
fix(monitoring): убрать Node Exporter Full и собирать cAdvisor со всех Docker-хостов
Старый дашборд оставался в каталоге Grafana, потому что копирование его не удаляет. core-secrets и rus-central не попадали в Cadvisor exporter: экспортёра на них не было.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-12 18:13:20 +07:00

42 lines
1.4 KiB
YAML

name: ansible-core-secrets
on:
push:
branches:
- main
paths:
- 'ansible/ansible.cfg'
- 'ansible/ci/**'
- 'ansible/roles/core-secrets/**'
- 'ansible/roles/cadvisor/**'
- 'ansible/roles/host/**'
- 'ansible/playbooks/core-secrets.yml'
- 'ansible/playbooks/host.yml'
- 'ansible/playbooks/site.yml'
- 'ansible/inventories/prod/hosts.yml'
- 'ansible/inventories/prod/host_vars/core-secrets.yml'
- 'ansible/inventories/prod/group_vars/**'
workflow_dispatch:
jobs:
deploy:
runs-on: homelab
container:
image: homelab-ansible:latest
timeout-minutes: 30
steps:
- name: Деплой core-secrets
env:
INFISICAL_CLIENT_ID: ${{ secrets.INFISICAL_CLIENT_ID }}
INFISICAL_CLIENT_SECRET: ${{ secrets.INFISICAL_CLIENT_SECRET }}
run: |
set -eu
rm -rf "${HOME}/homelab-infra"
git clone http://192.168.1.217:3000/karpenok/homelab-infra.git "${HOME}/homelab-infra"
sha="${GITHUB_SHA:-${GITEA_SHA:-}}"
if [ -n "${sha}" ]; then
git -C "${HOME}/homelab-infra" checkout "${sha}"
fi
chmod -R go-w "${HOME}/homelab-infra"
exec bash "${HOME}/homelab-infra/ansible/ci/deploy-machine.sh" core-secrets "${{ github.event_name }}" "${{ github.event.before }}" "${{ github.sha }}"