Skip to content

Commit

Permalink
feat: export the DNS link mapping to be reused
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed May 9, 2023
1 parent c3bc2ef commit 83c417c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion kubo-config.example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 83c417c

Please sign in to comment.