diff options
author | 2024-04-27 18:57:21 +0100 | |
---|---|---|
committer | 2024-04-27 19:27:24 +0100 | |
commit | b47b64109735c3a448da467f747ed7438906781c (patch) | |
tree | 3a99b8c5f66d3236cbdf8caa5bb2a481c9b0ed16 | |
parent | Update all versions in the dry run workflow (diff) |
Add workflow to deploy DNS changes to providers
-rw-r--r-- | .github/workflows/dns-deploy.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/dns-deploy.yaml b/.github/workflows/dns-deploy.yaml new file mode 100644 index 0000000..5755f22 --- /dev/null +++ b/.github/workflows/dns-deploy.yaml @@ -0,0 +1,27 @@ +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 + 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 }} |