ipfs / infra

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

Deploy `site x` to IPNS when `site x` source is updated in github #137

Closed harlantwood closed 6 years ago

harlantwood commented 8 years ago

When we update a project's source in github, we would like to deploy it via IPNS to (some path at or subdomain of) ipfs.io.

The first project we use project-repos.ipfs.io (https://github.com/ipfs/project-repos/issues/9) as the first test case. In the steps below, we call this generically PROJECT.

Steps:

harlantwood commented 8 years ago

I expect to reuse most of this code for the deployer.

harlantwood commented 8 years ago

Alternatively, as @jbenet pointed out in https://github.com/ipfs/project-repos/pull/11#issuecomment-163578826, we could do the building on CI, and just pass the hash of PROJECT/dist to our own deployer server, which could then publish to IPNS.

harlantwood commented 8 years ago

@lgierth can you lay out what you are doing to publish the blog on ipns? What are the steps, be they manual or scripted?

jbenet commented 8 years ago

this sounds pretty good :+1:

harlantwood commented 8 years ago

@lgierth can you lay out what you are doing to publish the blog on ipns? What are the steps, be they manual or scripted?

The reason I ask is in an attempt to de-duplicate deployment pathways, and in order to understand all the moving parts around this.

harlantwood commented 8 years ago

I will leave this open, but putting on the back burner for now. project-repos is going to use a workaround.

IMO, We need a unified strategy for how we deploy all of the sites from our org to IPFS/IPNS, whether as outlined above or some other strategy.

ghost commented 6 years ago

Jenkins is now deploying stuff to IPFS and updates dnslinks -- examples: ipfs/website ipfs/docs