mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-04-14 22:15:02 +00:00
dns: add dns-as-code files and workflows
This commit is contained in:
21
.github/workflows/dns.yaml
vendored
Normal file
21
.github/workflows/dns.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: DNS
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./dns
|
||||
|
||||
jobs:
|
||||
update-records:
|
||||
name: octodns
|
||||
runs-on: ubuntu-latest
|
||||
container: octodns/cloudflare:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: octodns-sync - production
|
||||
run: octodns-sync --config-file ./config/production.yaml --doit
|
||||
env:
|
||||
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
|
||||
Reference in New Issue
Block a user