diff --git a/.woodpecker.yml b/.woodpecker.yml index 8f8439c..476791f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -14,12 +14,12 @@ pipeline: - 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 - 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 when: event: push branch: main - secrets: [APIKEY] + secrets: [APIKEY, GANDI_API_KEY] publish: image: debian @@ -27,9 +27,10 @@ pipeline: - 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 - 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 when: event: push branch: main - secrets: [APIKEY] + secrets: [APIKEY, GANDI_API_KEY] diff --git a/dnsconfig.js b/dnsconfig.js index d085aaf..994e138 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -5,6 +5,9 @@ var REG_NAMECHEAP = NewRegistrar('namecheap'); var DNS_NAMECHEAP = NewDnsProvider('namecheap'); +var REG_GANDI = NewRegistrar('gandi'); +var DNS_GANDI = NewDnsProvider('gandi'); + D('cyberia.club', REG_NAMECHEAP, DnsProvider(DNS_NAMECHEAP), A('@', '69.61.2.178'), // elliot.cyberia.club (webserver) 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 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.') +);