30 lines
747 B
YAML
30 lines
747 B
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-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/scrape-sync.sh
|
|
environment:
|
|
GIT_TOKEN:
|
|
from_secret: GIT_TOKEN
|