Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

CloudFlare Create DNS Record

Actions
Creates a new CloudFlare DNS record
v1.7
Star (4)

Create DNS Record Action for GitHub

Creates a new CloudFlare DNS record.

Usage via Github Actions

name: example
on:
  pull_request:
    type: [opened, reopened]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: infraway/create-dns-record@v1
        with:
          type: "A"
          name: "review.example.com"
          content: "10.10.10.10"
          ttl: 1
          proxied: true
          token: ${{ secrets.CLOUDFLARE_TOKEN }}
          zone: ${{ secrets.CLOUDFLARE_ZONE }}

Usage via docker image

docker run -it --rm \
  -e "INPUT_TOKEN=1" \
  -e "INPUT_ZONE=2" \
  -e "INPUT_TYPE=A" \
  -e "INPUT_NAME=review.example.com" \
  -e "INPUT_CONTENT=10.10.10.10" \
  -e "INPUT_TTL=3600" \
  -e "INPUT_PROXIED=true" \
  infraway/cloudflare-create-dns-record 

License

The scripts and documentation in this project are released under the MIT License.

CloudFlare Create DNS Record is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Creates a new CloudFlare DNS record
v1.7

CloudFlare Create DNS Record is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.