Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Merge pull request #16 from thepurplebubble/kcoderhtml-patch-1 #56

Merge pull request #16 from thepurplebubble/kcoderhtml-patch-1

Merge pull request #16 from thepurplebubble/kcoderhtml-patch-1 #56

Workflow file for this run

name: DNS Deploy/Sync (OctoDNS)
on:
push:
branches:
- main
jobs:
OctoDNS:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_CLIENT_SECRET }}
tags: tag:ci
- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: "pip" # caches pip dependencies
- run: pip install -r requirements.txt
- name: Confirm installation
run: |
python -c "import octodns; import octodns_cloudflare"
- name: Set execute permissions
run: |
chmod +x ./bin/sync
- name: Sync w/ production DNS providers
run: ./bin/sync
env:
NS1_API_KEY: ${{ secrets.NS1_API_KEY }}
BIND_SECRET: ${{ secrets.BIND_SECRET }}
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}