ipfs / infra

Tools and systems for the IPFS community
MIT License
133 stars 41 forks source link

gh-pages pinbot w/ GitHub actions #440

Closed mikeal closed 6 years ago

mikeal commented 6 years ago

I'd like to create a GitHub Action (https://github.com/features/actions) that pins all the files in the a gh-pages branch and updates the issues with a gateway link.

I'm willing to write all of the code but what I need is some kind of authenticated API to our pinbot infra.

hsanjuan commented 6 years ago

Hello,

you will need to use ipfs-cluster-ctl --host /dnsaddr/cluster.ipfs.io or run ipfs and tunnel though it ipfs to the cluster endpoint . I recommend the first as you can make use of the docker container directly.

I think we are trying to consolidate on a single CI/CD, so probably want to check with @eefahy first about what's the best approach in case we want to put everything on CircleCI. It would also be useful that not only gh-pages but repositories in general get pinned (or auto gx'ed in some cases).

What secure method do you prefer to deliver your credentials? Is key 232D457F6433A3EC: public key "Mikeal Rogers <mikeal@osafoundation.org>" ok?

mikeal commented 6 years ago

@hsanjuan don't add those credentials, I'm due for a key change on GitHub. I'm on vacation for a few weeks starting tomorrow, I'll come back to this when I get back and sync up with @eefahy :) Thanks!

eefahy commented 6 years ago

Sounds good @mikeal - FYI, I'm doing a very similar thing in our private website repos for publishing using CircleCI - working on the notification back to GH with the gateway hash now. Would love to compare notes when you're back. Have a great vacation!

eefahy commented 6 years ago

Closing this in favor of https://github.com/protocol/infra/issues/399