-
-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (29 loc) · 804 Bytes
/
dns-deploy.yaml
File metadata and controls
33 lines (29 loc) · 804 Bytes
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
28
29
30
31
32
33
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@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
activate-environment: true
- name: Install dependencies
run: uv sync --frozen --only-group 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 }}