Skip to content

InfraWay/create-dns-record

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Cloudflare DNS Record Action for GitHub

Creates new CloudFlare DNS record. Updates the record if it already exists.

Usage via Github Actions

name: example
on:
  pull_request:
    type: [opened, reopened]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: infraway/[email protected]
        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.

Packages

No packages published

Languages

  • JavaScript 85.7%
  • Shell 8.9%
  • Dockerfile 5.4%