From 83c417ccc5965a73556246375bd4b2b4c6529a17 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Tue, 9 May 2023 16:46:32 +0200 Subject: [PATCH] feat: export the DNS link mapping to be reused --- .github/workflows/test.yml | 2 +- kubo-config.example.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6ca3272a..6d626f03c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: - name: Configure Kubo Gateway run: | ipfs init; - ./gateway-conformance/kubo-config.example.sh; + source ./gateway-conformance/kubo-config.example.sh; IPFS_NS_MAP=$(cat ./fixtures/dnslinks.json | jq -r 'to_entries | map("\(.key).example.com:\(.value)") | join(",")') echo "IPFS_NS_MAP=${IPFS_NS_MAP}" >> $GITHUB_ENV # note: the IPFS_NS_MAP set above will be passed the daemon: diff --git a/kubo-config.example.sh b/kubo-config.example.sh index 8a266ad37..14cf41969 100755 --- a/kubo-config.example.sh +++ b/kubo-config.example.sh @@ -11,7 +11,7 @@ ipfs config --json Gateway.PublicGateways '{ } }' -IPFS_NS_MAP=$(cat ./dnslinks.json | jq -r 'to_entries | map("\(.key).example.com:\(.value)") | join(",")') +export IPFS_NS_MAP=$(cat ./dnslinks.json | jq -r 'to_entries | map("\(.key).example.com:\(.value)") | join(",")') echo "Set the following IPFS_NS_MAP before starting the kubo daemon:" echo "IPFS_NS_MAP=${IPFS_NS_MAP}"