It appears that running ipfs-deploy succeeds even if the DNS update fails. This is worrying as I want to use ti in an automated fashion and I can't trust that it actually worked. Even if I use it manually it is very easy to see that it exited 0 and not bother reading the output to realize that something went wrong.
ipfs-deploy should exit with a non-zero status if something went wrong.
Example:
$ npx ipfs-deploy -d cloudflare /dev/null
β π Directory /dev/null weighs 0 B.
β π Added and pinned to Infura with hash:
βΉ π QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH
β π Missing arguments for Cloudflare API.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Error: Missing the following environment variables: β
β β
β IPFS_DEPLOY_CLOUDFLARE__API_EMAIL β
β IPFS_DEPLOY_CLOUDFLARE__API_KEY // or... β
β IPFS_DEPLOY_CLOUDFLARE__API_TOKEN β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π Copied HTTP gateway URL to clipboard:
βΉ π https://ipfs.infura.io/ipfs/QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH/
QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH
β π Opened URL on web browser (call with -O to disable):
βΉ π https://ipfs.infura.io/ipfs/QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH/
$ echo $?
0
$ npx ipfs-deploy -d dnsimple /dev/null
β π Directory /dev/null weighs 0 B.
β π Added and pinned to Infura with hash:
βΉ π QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH
β π Missing arguments for DNSimple API.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Error: Missing the following environment variables: β
β β
β IPFS_DEPLOY_DNSIMPLE__TOKEN β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π Copied HTTP gateway URL to clipboard:
βΉ π https://ipfs.infura.io/ipfs/QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH/
QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH
β π Opened URL on web browser (call with -O to disable):
βΉ π https://ipfs.infura.io/ipfs/QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH/
$ echo $?
0
It appears that running
ipfs-deploy
succeeds even if the DNS update fails. This is worrying as I want to use ti in an automated fashion and I can't trust that it actually worked. Even if I use it manually it is very easy to see that it exited0
and not bother reading the output to realize that something went wrong.ipfs-deploy
should exit with a non-zero status if something went wrong.Example: