mirror of
https://github.com/koenrh/dnscontrol-action.git
synced 2024-11-10 09:02:52 +08:00
Add support for ClouDNS provider
This commit is contained in:
parent
170d87f800
commit
58f3cef74b
2 changed files with 17 additions and 0 deletions
|
@ -117,6 +117,13 @@ set.
|
|||
- `CLOUDFLARE_ACCOUNT_ID` (optional)
|
||||
- `CLOUDFLARE_ACCOUNT_NAME` (optional)
|
||||
|
||||
### ClouDNS
|
||||
|
||||
[Documentation](https://stackexchange.github.io/dnscontrol/providers/cloudns)
|
||||
|
||||
- `CLOUDNS_AUTH_ID`
|
||||
- `CLOUDNS_AUTH_PASSWORD`
|
||||
|
||||
### DigitalOcean
|
||||
|
||||
[Documentation](https://stackexchange.github.io/dnscontrol/providers/digitalocean)
|
||||
|
|
|
@ -22,6 +22,9 @@ CLOUDFLARE_API_KEY="${INPUT_CLOUDFLAREAPIKEY:-$CLOUDFLARE_API_KEY}"
|
|||
CLOUDFLARE_ACCOUNT_ID="${INPUT_CLOUDFLAREACCOUNTID:-$CLOUDFLARE_ACCOUNT_ID}"
|
||||
CLOUDFLARE_ACCOUNT_NAME="${INPUT_CLOUDFLAREACCOUNTNAME:-$CLOUDFLARE_ACCOUNT_NAME}"
|
||||
|
||||
CLOUDNS_AUTH_ID="${INPUT_CLOUDNSAUTHID:-$CLOUDNS_AUTH_ID}"
|
||||
CLOUDNS_AUTH_PASSWORD="${INPUT_CLOUDNSPASSWORD:-$CLOUDNS_AUTH_PASSWORD}"
|
||||
|
||||
DIGITALOCEAN_OAUTH_TOKEN="${INPUT_DIGITALOCEANOAUTHTOKEN:-$DIGITALOCEAN_OAUTH_TOKEN}"
|
||||
|
||||
DNSIMPLE_ACCOUNT_ACCESS_TOKEN="${INPUT_DNSIMPLEACCOUNTACCESSTOKEN:-$DNSIMPLE_ACCOUNT_ACCESS_TOKEN}"
|
||||
|
@ -100,6 +103,13 @@ then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ -n "$CLOUDNS_AUTH_ID" && -n "$CLOUDNS_AUTH_PASSWORD" ]]
|
||||
then
|
||||
# NOTE: https://stackexchange.github.io/dnscontrol/providers/cloudns
|
||||
add_key ".cloudns.auth-id" "\$CLOUDNS_AUTH_ID"
|
||||
add_key ".cloudns.auth-password" "\$CLOUDNS_AUTH_PASSWORD"
|
||||
fi
|
||||
|
||||
if [[ -n "$DIGITALOCEAN_OAUTH_TOKEN" ]]
|
||||
then
|
||||
# NOTE: https://stackexchange.github.io/dnscontrol/providers/digitalocean
|
||||
|
|
Loading…
Reference in a new issue