Files
blackroad-operating-system/.github/workflows/sync-domains.yml
Alexa Amundson baca146637 Add GitHub Actions workflow tAdd sync-domains workflowo sync domains
Add GitHub Actions workflow to sync domain configuration on push to main or via manual trigger.
2025-11-16 22:46:33 -06:00

35 lines
855 B
YAML

name: Sync Domains
on:
workflow_dispatch: {}
push:
branches: [main]
paths:
- ops/domains.yaml
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml requests
- name: Apply domain configuration
env:
GODADDY_API_KEY: ${{ secrets.GODADDY_API_KEY }}
GODADDY_API_SECRET: ${{ secrets.GODADDY_API_SECRET }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
# Optionally set CLOUDFLARE_ACCOUNT_ID if needed by your script
run: |
python ops/scripts/apply_domains.py