Skip to content

Instantly share code, notes, and snippets.

@TownLake

TownLake/create-dns.yml

Last active Jun 21, 2020
Embed
What would you like to do?
- name: create dns
run: |
curl ${{ env.POST }} ${{ env.CURL_AUTH }} ${{ env.CURL_CONTENT }} ${{ env.CURL_DATA }}
env:
POST: '-X POST "https://api.cloudflare.com/client/v4/zones/${{ env.ZONE_TAG }}/dns_records"'
CURL_DATA: --data '{"type":"A","name":"${{ env.ZONE_NAME }}","content":"1.1.1.1","ttl":120,"priority":10,"proxied":true}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment