Skip to content

nicklinnell/dnsimple-create-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

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create DNS Record Action for GitHub

Creates a new DNSimple DNS record, if the record already exists then it is updated.

See createZoneRecord

Usage via Github Actions

name: example
on:
  pull_request:
    type: [opened, reopened]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: nicklinnell/dnsimple-create-record@v1
        with:
          name: ""
          type: "MX"
          content: "max.example.com"
          ttl: 600
          priority: 10
          regions: '["SV1","IAD"]' # NOTE: regions must be supplied as a string
          token: ${{ secrets.DNSIMPLE_TOKEN }}
          zone: ${{ secrets.DNSIMPLE_ZONE }}
          account: ${{ secrets.DNSIMPLE_ACCOUNT }}

Usage via docker image

docker run -it --rm \
  -e "INPUT_TOKEN=xxxx" \
  -e "INPUT_ZONE=example.com" \
  -e "INPUT_TYPE=A" \
  -e "INPUT_NAME=review" \
  -e "INPUT_CONTENT=10.10.10.10" \
  nicklinnell/dnsimple-create-record 

License

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

Thanks

This is largely copied from kriasoft and infraWay and their similar implementation for CloudFlare.

About

Github Action for creating DNS records in DNSimple

Resources

License

Stars

Watchers

Forks

Packages

No packages published