Skip to content

Commit

Permalink
fix: switch to new dnslink updater
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Nov 8, 2023
1 parent 96d4fb2 commit ceb4689
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-ipfs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
steps:
- uses: ipfs/download-ipfs-distribution-action@v1
with:
name: go-ipfs
name: kubo
version: "${{ env.KUBO_VER }}"
- uses: ipfs/download-ipfs-distribution-action@v1
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:

env:
DIST_ROOT: ${{ github.event.inputs.custom_dist_root || '/ipns/dist.ipfs.tech' }} # content root used for calculating diff to build
KUBO_VER: 'v0.22.0' # kubo daemon used for chunking and applying diff
CLUSTER_CTL_VER: 'v1.0.6' # ipfs-cluster-ctl used for pinning
KUBO_VER: 'v0.24.0' # kubo daemon used for chunking and applying diff
CLUSTER_CTL_VER: 'v1.0.7' # ipfs-cluster-ctl used for pinning

jobs:
build:
Expand Down Expand Up @@ -144,17 +144,17 @@ jobs:
with:
name: diff
path: diff
- name: Update .tech DNSLink (if on the main branch)
run: npx dnslink-dnsimple --domain dist.ipfs.tech --link /ipfs/${{ steps.cid-reader.outputs.CID }}
if: github.ref == 'refs/heads/master'
env:
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }}
- name: Update legacy .io 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'
- uses: actions/setup-go@v4
#TODO if: github.ref == 'refs/heads/master'
with:
go-version: "1.20.x"
- name: Update _dnslink.dist.ipfs.tech (if on the main branch)
run: |
go install github.com/ipfs/[email protected]
dnslink-dnsimple --domain dist.ipfs.tech --record _dnslink --link /ipfs/${{ steps.cid-reader.outputs.CID }}
env:
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }}

#TODO if: github.ref == 'refs/heads/master'

diff:
needs: persist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:

env:
DIST_ROOT: ${{ github.event.inputs.custom_dist_root || '/ipns/dist.ipfs.tech' }} # content root used for calculating diff to build
KUBO_VER: 'v0.22.0' # kubo daemon used for chunking and applying diff
CLUSTER_CTL_VER: 'v1.0.6' # ipfs-cluster-ctl used for pinning
KUBO_VER: 'v0.24.0' # kubo daemon used for chunking and applying diff
CLUSTER_CTL_VER: 'v1.0.7' # ipfs-cluster-ctl used for pinning

concurrency:
group: nightly
Expand Down
16 changes: 10 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ceb4689

Please sign in to comment.