deploy.yml (778B)
1 --- 2 name: octodns Deploy 3 on: 4 # Deploy config whenever DNS changes are pushed to main. 5 push: 6 branches: [main] 7 jobs: 8 publish: 9 name: Publish DNS config from main 10 runs-on: ubuntu-latest 11 steps: 12 - uses: actions/checkout@v2 13 - uses: actions/setup-python@v2 14 with: 15 python-version: '3.12' 16 - run: pip install -r requirements.txt 17 - uses: solvaholic/octodns-sync@main 18 with: 19 config_path: config/production.yaml 20 doit: --doit 21 env: 22 POWERDNS_API_KEY_NS1: ${{ secrets.POWERDNS_API_KEY_NS1 }} 23 POWERDNS_API_KEY_NS2: ${{ secrets.POWERDNS_API_KEY_NS2 }} 24 POWERDNS_API_KEY_NS3: ${{ secrets.POWERDNS_API_KEY_NS3 }} 25 CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}