File tree Expand file tree Collapse file tree 10 files changed +104
-2
lines changed
Expand file tree Collapse file tree 10 files changed +104
-2
lines changed Original file line number Diff line number Diff line change 1+ * .yaml linguist-detectable
2+ * .yml linguist-detectable
Original file line number Diff line number Diff line change 1+
Original file line number Diff line number Diff line change 1+ name : Sync DNS
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ force :
7+ description : ' Use --force flag'
8+ required : false
9+ type : boolean
10+ default : false
11+ push :
12+ branches :
13+ - main
14+
15+ jobs :
16+ octodns :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v4
20+ - uses : actions/setup-python@v5
21+ with :
22+ python-version : ' 3'
23+ cache : " pip" # caches pip dependencies
24+ - name : Install OctoDNS
25+ run : pip install 'octodns==0.9.10'
26+ - name : Sync w/ production DNS providers
27+ run : ./bin/sync ${{ inputs.force && '--force' || '' }}
28+ env :
29+ # DNSIMPLE_ACCOUNT_NUMBER: ${{ secrets.DNSIMPLE_ACCOUNT_NUMBER }}
30+ # DNSIMPLE_API_KEY: ${{ secrets.DNSIMPLE_API_KEY }}
Original file line number Diff line number Diff line change 1+ name : Dry Run DNS
2+
3+ on :
4+ - push
5+ - pull_request
6+ - workflow_dispatch :
7+ inputs :
8+ force :
9+ description : ' Use --force flag'
10+ required : false
11+ type : boolean
12+ default : false
13+
14+ jobs :
15+ octodns :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ - uses : actions/setup-python@v5
20+ with :
21+ python-version : ' 3'
22+ cache : " pip" # caches pip dependencies
23+ - name : Install OctoDNS
24+ run : pip install 'octodns==0.9.10'
25+ - name : Do a dry run
26+ run : ./bin/dry-run ${{ inputs.force && '--force' || '' }}
27+ env :
28+ # DNSIMPLE_ACCOUNT_NUMBER: ${{ secrets.DNSIMPLE_ACCOUNT_NUMBER }}
29+ # DNSIMPLE_API_KEY: ${{ secrets.DNSIMPLE_API_KEY }}
Original file line number Diff line number Diff line change 1+ name : Validate DNS Configs
2+ on :
3+ push :
4+ branches :
5+ - main
6+ pull_request :
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pull-requests : write
12+
13+ jobs :
14+ json-yaml-validate :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Validate JSON & YAML
20+ id : json-yaml-validate
21+ uses :
GrantBirki/[email protected] 22+ with :
23+ comment : " true"
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- octodns-sync --config-file=./config/main.yaml
3+ FORCE_FLAG=" "
4+ if [ " $1 " = " --force" ]; then
5+ FORCE_FLAG=" --force"
6+ fi
7+
8+ octodns-sync --config-file=./config/main.yaml $FORCE_FLAG
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ octodns-sync --config-file=./config/main.yaml --force
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- octodns-sync --config-file=./config/main.yaml --doit
3+ FORCE_FLAG=" "
4+ if [ " $1 " = " --force" ]; then
5+ FORCE_FLAG=" --force"
6+ fi
7+
8+ octodns-sync --config-file=./config/main.yaml --doit $FORCE_FLAG
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ octodns-sync --config-file=./config/main.yaml --doit --force
Original file line number Diff line number Diff line change 1+
You can’t perform that action at this time.
0 commit comments