Add Forgejo action to publish DNS records upstream.
All checks were successful
update-dns-upstream / execute (push) Successful in 9m58s
All checks were successful
update-dns-upstream / execute (push) Successful in 9m58s
This commit is contained in:
parent
9a40fa7462
commit
b2afd707ca
2 changed files with 24 additions and 5 deletions
21
.forgejo/workflows/update-dns-upstream.yaml
Normal file
21
.forgejo/workflows/update-dns-upstream.yaml
Normal 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
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue