Add Forgejo action to publish DNS records upstream.
All checks were successful
update-dns-upstream / execute (push) Successful in 9m58s

This commit is contained in:
Ketan Vijayvargiya 2024-06-14 06:18:15 -07:00
parent 9a40fa7462
commit b2afd707ca
2 changed files with 24 additions and 5 deletions

View file

@ -0,0 +1,21 @@
name: update-dns-upstream
on: [push]
jobs:
execute:
runs-on: docker
container:
image: node:latest
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.cloudflare_account_id }}
CLOUDFLARE_API_TOKEN: ${{ secrets.cloudflare_api_token }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update DNS upstream
shell: bash
run: |
nix run . -- version
nix run . -- push

View file

@ -5,9 +5,7 @@
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.default = nixpkgs.legacyPackages.${system}.dnscontrol;
});
{
packages.default = nixpkgs.legacyPackages.${system}.dnscontrol;
});
}