add GANDI_API_KEY #8

Merged
j3s merged 3 commits from forest-patch-3 into main 2022-08-23 02:37:44 +00:00
2 changed files with 15 additions and 4 deletions

View file

@ -14,12 +14,12 @@ pipeline:
- apt-get update > /dev/null && apt-get install -y curl > /dev/null - apt-get update > /dev/null && apt-get install -y curl > /dev/null
- curl -L --silent --output /usr/local/bin/dnscontrol https://github.com/StackExchange/dnscontrol/releases/download/v3.16.2/dnscontrol-Linux - curl -L --silent --output /usr/local/bin/dnscontrol https://github.com/StackExchange/dnscontrol/releases/download/v3.16.2/dnscontrol-Linux
- chmod +x /usr/local/bin/dnscontrol - chmod +x /usr/local/bin/dnscontrol
- printf '{"namecheap":{"TYPE":"NAMECHEAP","apikey":"%s","apiuser":"j33s"}}' "$APIKEY" > creds.json - printf '{"namecheap":{"TYPE":"NAMECHEAP","apikey":"%s","apiuser":"j33s"}, "gandi": {"TYPE": "GANDI_V5", "apikey": "%s"}}' "$APIKEY" "$GANDI_API_KEY" > creds.json
- dnscontrol preview - dnscontrol preview
when: when:
event: push event: push
branch: main branch: main
secrets: [APIKEY] secrets: [APIKEY, GANDI_API_KEY]
publish: publish:
image: debian image: debian
@ -27,9 +27,10 @@ pipeline:
- apt-get update > /dev/null && apt-get install -y curl > /dev/null - apt-get update > /dev/null && apt-get install -y curl > /dev/null
- curl -L --silent --output /usr/local/bin/dnscontrol https://github.com/StackExchange/dnscontrol/releases/download/v3.16.2/dnscontrol-Linux - curl -L --silent --output /usr/local/bin/dnscontrol https://github.com/StackExchange/dnscontrol/releases/download/v3.16.2/dnscontrol-Linux
- chmod +x /usr/local/bin/dnscontrol - chmod +x /usr/local/bin/dnscontrol
- printf '{"namecheap":{"TYPE":"NAMECHEAP","apikey":"%s","apiuser":"j33s"}}' "$APIKEY" > creds.json - printf '{"namecheap":{"TYPE":"NAMECHEAP","apikey":"%s","apiuser":"j33s"}, "gandi": {"TYPE": "GANDI_V5", "apikey": "%s"}}' "$APIKEY" "$GANDI_API_KEY" > creds.json
- dnscontrol push - dnscontrol push
when: when:
event: push event: push
branch: main branch: main
secrets: [APIKEY] secrets: [APIKEY, GANDI_API_KEY]

View file

@ -5,6 +5,9 @@
var REG_NAMECHEAP = NewRegistrar('namecheap'); var REG_NAMECHEAP = NewRegistrar('namecheap');
var DNS_NAMECHEAP = NewDnsProvider('namecheap'); var DNS_NAMECHEAP = NewDnsProvider('namecheap');
var REG_GANDI = NewRegistrar('gandi');
var DNS_GANDI = NewDnsProvider('gandi');
D('cyberia.club', REG_NAMECHEAP, DnsProvider(DNS_NAMECHEAP), D('cyberia.club', REG_NAMECHEAP, DnsProvider(DNS_NAMECHEAP),
A('@', '69.61.2.178'), // elliot.cyberia.club (webserver) A('@', '69.61.2.178'), // elliot.cyberia.club (webserver)
A('basement', '23.88.131.230'), A('basement', '23.88.131.230'),
@ -135,3 +138,10 @@ D('capsul.org', REG_NAMECHEAP, DnsProvider(DNS_NAMECHEAP),
A('@', '69.61.110.118'), // baikal.cyberia.club A('@', '69.61.110.118'), // baikal.cyberia.club
CNAME('test', 'baikal.cyberia.club.') CNAME('test', 'baikal.cyberia.club.')
); );
D('layerze.ro', REG_GANDI, DnsProvider(DNS_GANDI),
ALIAS('@', 'elliot.cyberia.club.'),
CNAME('www', 'elliot.cyberia.club.'),
CNAME('calendar', 'zicocapsul.cyberia.club.'),
CNAME('www.calendar', 'zicocapsul.cyberia.club.')
);