apps-gitops/.woodpecker.yml
2025-06-27 19:30:50 +03:00

44 lines
1.2 KiB
YAML

steps:
sync-cloudflare:
when:
branch: [master]
name: Scan Apps and Update Cloudflared
image: alpine
commands:
- apk add --no-cache git bash curl yq
- bash automation/cloudflared/cloudflared-sync.sh
environment:
GIT_TOKEN:
from_secret: GIT_TOKEN
CLOUDFLARE_API_TOKEN:
from_secret: CLOUDFLARE_API_TOKEN
CLOUDFLARE_ZONE_ID:
from_secret: CLOUDFLARE_ZONE_ID
sync-prometheus-scrapes:
when:
branch: [master]
name: Update Prometheus Additional Scrapes
image: python:3.11-alpine
commands:
- apk add --no-cache git bash
- pip install ruamel.yaml
- bash automation/prometheus/scrape-sync.sh
environment:
GIT_TOKEN:
from_secret: GIT_TOKEN
external-url-alerts:
when:
branch: [master]
name: External Alert Checks (Pushover)
image: python:3.11-alpine
commands:
- apk add --no-cache git curl bash
- pip install pyyaml requests
- python3 automation/alerts/external_alert_checker.py
environment:
PUSHOVER_USER:
from_secret: PUSHOVER_USER
PUSHOVER_TOKEN:
from_secret: PUSHOVER_TOKEN