-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to deploy DNS changes to providers
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |