Skip to content

Instantly share code, notes, and snippets.

@TownLake
Last active June 21, 2020 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TownLake/c2d575cb7a1dedbcdb650e370ac09934 to your computer and use it in GitHub Desktop.
Save TownLake/c2d575cb7a1dedbcdb650e370ac09934 to your computer and use it in GitHub Desktop.
- 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