Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dnslink for dist.ipfs.io on merge to master #419

Merged
merged 3 commits into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ jobs:
runs-on: "ubuntu-latest"
needs: sign-macos
steps:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 15
- uses: actions/checkout@v2
- name: Retrieve signed artifacts
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -141,6 +145,12 @@ jobs:
with:
name: diff
path: diff
- name: Update DNSLink (if on the main branch)
- run: npx dnslink-dnsimple --domain dist.ipfs.io --link /ipfs/${{ steps.cid-reader.outputs.CID }}
lidel marked this conversation as resolved.
Show resolved Hide resolved
if: github.ref == 'refs/heads/master'
env:
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }}


diff:
needs: persist
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/setup-ipfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ sudo sysctl -w net.core.rmem_max=2500000

# init ipfs
echo "::group::Set up IPFS daemon"
ipfs init --profile flatfs,server,test,lowpower
ipfs init --profile flatfs,server,test,randomports,lowpower
# make flatfs async for faster ci
new_config=$( jq '.Datastore.Spec.mounts[0].child.sync = false' ~/.ipfs/config) && echo "${new_config}" > ~/.ipfs/config
# restore deterministic port (changed by test profile)
ipfs config Addresses.API "/ip4/127.0.0.1/tcp/5001"
# wait for ipfs daemon
ipfs daemon --routing=none --enable-gc=false & while (! ipfs id --api "/ip4/127.0.0.1/tcp/5001"); do sleep 1; done
ipfs daemon --enable-gc=false & while (! ipfs id --api "/ip4/127.0.0.1/tcp/5001"); do sleep 1; done
echo "::endgroup::"


Expand Down