Skip to content

Commit c2f4aa4

Browse files
committed
Add workflow to deploy DNS changes to providers
1 parent ceafc99 commit c2f4aa4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/dns-deploy.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy DNS to providers
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
octodns-sync:
9+
environment: production
10+
name: Sync latest changes to DNS providers
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: ./dns
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.12'
20+
- run: pip install -r requirements.txt
21+
- uses: solvaholic/octodns-sync@main
22+
with:
23+
config_path: dns/production.yaml
24+
doit: '--doit'
25+
env:
26+
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
27+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)