mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2025-01-15 21:36:36 +00:00
PoC: Alternative envvar definition
This commit is contained in:
parent
14b5ae7bda
commit
4df49c2f1d
|
@ -28,6 +28,15 @@ steps:
|
||||||
export machineip=$( for i in {0..24}; do jq 'if .servers['$i'].name == "selfprivacy-mailserver" then .servers['$i'].public_net.ipv4.ip else null end' .machine.json; done | grep -v null | sed 's/"//' | sed 's/"//' )
|
export machineip=$( for i in {0..24}; do jq 'if .servers['$i'].name == "selfprivacy-mailserver" then .servers['$i'].public_net.ipv4.ip else null end' .machine.json; done | grep -v null | sed 's/"//' | sed 's/"//' )
|
||||||
|
|
||||||
- name: dns
|
- name: dns
|
||||||
|
environment:
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: HETZNER_TOKEN
|
||||||
|
CLOUDFLARE_TOKEN:
|
||||||
|
from_secret: CLOUDFLARE_TOKEN
|
||||||
|
DOMAIN:
|
||||||
|
from_secret: DOMAIN
|
||||||
|
ZONE_ID:
|
||||||
|
from_secret: ZONE_ID
|
||||||
commands:
|
commands:
|
||||||
- >
|
- >
|
||||||
curl -s -X GET "https://api.cloudflare.com/client/v4/zones?name=${DOMAIN}"
|
curl -s -X GET "https://api.cloudflare.com/client/v4/zones?name=${DOMAIN}"
|
||||||
|
|
Loading…
Reference in a new issue