Skip to content

Commit

Permalink
Add workflow to deploy DNS changes to providers
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Apr 27, 2024
1 parent ceafc99 commit 68aa9e6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dns-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy DNS to providers

on:
push:
branches:
- main
jobs:
octodns-sync:
environment: production
name: Sync latest changes to DNS providers
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dns
outputs:
plan: ${{ steps.generate-plan.outputs.plan }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install -r requirements.txt
- 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 }}

0 comments on commit 68aa9e6

Please sign in to comment.