aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/dns-deploy.yaml
blob: f2d9e8cf43320049e1c247f21b4461b04c44c529 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Deploy DNS to providers

on:
  push:
    branches:
      - main
    paths:
      - 'dns/**'
jobs:
  octodns-sync:
    environment: production
    name: Sync latest changes to DNS providers
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install Python Dependencies
        uses: HassanAbouelela/actions/setup-python@setup-python_v1.6.0
        with:
          python_version: '3.12'
          install_args: --only dns
      - uses: solvaholic/octodns-sync@main
        with:
          config_path: dns/production.yaml
          doit: '--doit'
        env:
          CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
          CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}