-
-
Notifications
You must be signed in to change notification settings - Fork 5k
DNS API Test
There is a CI workflow DNS.yml
to test your dns api when you send PR to add new dns api.
This test must be passing before your PR can get merged.
However, as a limitation of github actions, the workflow DNS.yml
can only run in your Forked repo when you push code.
So, please enable Github Actions on your Forked repo first, and then push code to your repo, it will run there.
export MyDnsKey1=myValue1
export MyDnsKey2=myValue2
acme.sh --issue -d mytest.myExample.com --dns dns_myapi
Open the menu: "Settings"
-> "Secrets"
-> "New secret"
The secrets are only visible to yourself, nobody else can read the secrets.
Set the following secrets:
TokenName1 = MyDnsKey1
TokenValue1 = myValue1
TokenName2 = MyDnsKey2
TokenValue2 = myValue2
TEST_DNS = dns_myapi
TestingDomain = mytest.myExample.com
TEST_DNS_SLEEP = 120
The TEST_DNS_SLEEP
is the time (in seconds) to sleep to wait for your DNS records to propagate.
Different DNS providers may require different propagate time, please ask your DNS provider support for the time.
Usually, it's larger than 120
seconds.
If you need a solaris shell to debug your script, please see this project: https://github.com/vmactions/shell-solaris
If you need a freebsd shell to debug your script, please see this project: https://github.com/vmactions/shell-freebsd
Buy me a beer, Donate to acme.sh if it saves your time. Your donation makes acme.sh better: https://donate.acme.sh/
如果 acme.sh 帮你节省了时间,请考虑赏我一杯啤酒🍺, 捐助: https://donate.acme.sh/ 你的支持将会使得 acme.sh 越来越好. 感谢