/cloudflare-update-dnslink

Update Cloudflare DNSLink with IPFS Hash

Primary LanguageShell

cloudflare-update-dnslink

Allows you to quickly update a Cloudflare DNSLink with a new IPFS CID. This action requires that you have already created a DNS Link record in your Cloudflare DNS settings. Additionally, you will need a Cloudflare Token with sufficient permissions to edit the DNS record.

Example

- name: Update DNSLink
  env:
    CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
    RECORD_DOMAIN: "textile.io"
    RECORD_NAME: "_dnslink.subdomainname"
    CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
  id: dnslink
  uses: textileio/cloudflare-update-dnslink@master
  with:
    cid: ${{ steps.push.outputs.cid }}

For a more complete tutorial, see this blog post.