-
Notifications
You must be signed in to change notification settings - Fork 528
chore: add circleci based deploy #965
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
Conversation
ci is dead. long live ci. License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
.circleci/config.yml
Outdated
| preview_url=https://ipfs.io/ipfs/$hash | ||
|
|
||
| # Preload ipfs hash on the gateway | ||
| curl --silent --output /dev/null --show-error $preview_url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the intention to preload just the HTML of main page?
If not, entire thing could be preloaded asynchronously in best-effort fashion without breaking the build:
nohup curl --max-time 900 -s "https://ipfs.io/api/v0/refs?r=true&arg=${preview_url}" >/dev/null 2>&1 &
.circleci/config.yml
Outdated
| docker: | ||
| - image: olizilla/ipfs-dns-deploy | ||
| environment: | ||
| DOMAIN: explore.ipld.io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webui.ipfs.io?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
derp
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
hsanjuan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post-merge review with a couple of improvements...
| hash=$(ipfs-cluster-ctl \ | ||
| --host /dnsaddr/cluster.ipfs.io \ | ||
| --basic-auth $CLUSTER_USER:$CLUSTER_PASSWORD \ | ||
| add --rmin 3 --rmax 3 --name "$DOMAIN" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not set --rmin/--rmax, that way cluster's defaults will be used.. Also, if by chance you have the [short]-commit ID available, you could add it to the --name tag so there is more info.
| --host /dnsaddr/cluster.ipfs.io \ | ||
| --basic-auth $CLUSTER_USER:$CLUSTER_PASSWORD \ | ||
| add --rmin 3 --rmax 3 --name "$DOMAIN" \ | ||
| --recursive /tmp/workspace/$BUILD_DIR | tail -n1 | cut -d " " -f 2 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want to use the --quietest or --Q option which only outputs the final hash, rather than tail ...
|
Thanks @hsanjuan that's good to know. Will update. |
see: #965 (review) License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
- let ipfs-cluster decide replication min/max - use --quieter to get the root cid, rather than fancy tail-ing. see: #965 (review) License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
ci is dead. long live ci.
License: MIT
Signed-off-by: Oli Evans oli@tableflip.io