Skip to content

Commit

Permalink
Update dnslink for dist.ipfs.io on merge to master (#419)
Browse files Browse the repository at this point in the history
* update dnslink for dist.ipfs.io on ci
* fix(ci): context deadline exceeded
* chore: cleanup before merge

Co-authored-by: Marcin Rataj <[email protected]>
  • Loading branch information
petar and lidel committed Oct 4, 2021
1 parent 5380397 commit 2f571b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
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 }}
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

0 comments on commit 2f571b2

Please sign in to comment.