dns-config/.forgejo/workflows/update-dns-upstream.yaml

22 lines
552 B
YAML
Raw Permalink Normal View History

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