mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-15 12:52:13 +08:00
Created DNS API Test (markdown)
36
DNS-API-Test.md
Normal file
36
DNS-API-Test.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
There is a CI workflow 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.
|
||||||
|
|
||||||
|
### 1. Let assume the usage of your api is like bellow:
|
||||||
|
|
||||||
|
```
|
||||||
|
export MyDnsKey1=myValue1
|
||||||
|
export MyDnsKey2=myValue2
|
||||||
|
|
||||||
|
acme.sh --issue -d myExample.com --dns dns_myapi
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. You need to set up the following "Github actions Secrets":
|
||||||
|
|
||||||
|
Open the follow `"Settings"` -> `"Secrets"` -> `"New secret"`
|
||||||
|
|
||||||
|
```
|
||||||
|
TokenName1 = MyDnsKey1
|
||||||
|
TokenValue1 = myValue1
|
||||||
|
|
||||||
|
TokenName2 = MyDnsKey2
|
||||||
|
TokenValue2 = myValue2
|
||||||
|
|
||||||
|
|
||||||
|
TEST_DNS = dns_myapi
|
||||||
|
TestingDomain = myExample.com
|
||||||
|
|
||||||
|
TEST_DNS_SLEEP = 120
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user