-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switch to new dnslink updater (#2175)
This solves problem described in ipfs/distributions#1053 by switching to new tool like we did in ipfs/distributions#1055
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,14 +131,24 @@ jobs: | |
script: | | ||
core.setFailed('Pinning did not succeed') | ||
# dnslink-dnsimple requires go | ||
- uses: actions/setup-go@v4 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
go-version: "1.20.x" | ||
|
||
- name: Set up dnslink updater | ||
if: github.ref == 'refs/heads/main' | ||
run: go install github.com/ipfs/[email protected] | ||
|
||
# dev dnslink is updated on each main branch update | ||
- run: npx dnslink-dnsimple --domain dev.webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }} | ||
- run: dnslink-dnsimple --domain dev.webui.ipfs.io --record _dnslink --link /ipfs/${{ steps.ipfs.outputs.cid }} | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }} | ||
|
||
# production dnslink is updated on release (during tag build) | ||
- run: npx dnslink-dnsimple --domain webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }} | ||
- run: dnslink-dnsimple --domain webui.ipfs.io --record _dnslink --link /ipfs/${{ steps.ipfs.outputs.cid }} | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' | ||
env: | ||
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters