cynkra / cynkrablog

Source of the cynkra blog
https://cynkra.com/blog
0 stars 1 forks source link

practical steps for launch #16

Closed maelle closed 9 months ago

maelle commented 1 year ago

@pat-s we're not there yet just now but I thought it'd be useful to know. :pray:

Eventually how will we launch cynkra.github.io/cynkrablog to cynkra.com/blog?

pat-s commented 1 year ago

I'd create a cloudfront instance which will serve the site from an S3 bucket (similar to what we do for cynkra.com). So the publishing workflow would need to sync the output files to an s3 bucket of ours.

We do this for enhanced performance and security control (compared to gh-pages).

maelle commented 1 year ago

Thank you!

Would you have time to help with this? Or just time to indicate me what steps of cynkraweb workflow I should copy?

The current workflow is at https://github.com/cynkra/cynkrablog/blob/main/.github/workflows/publish.yml

pat-s commented 1 year ago

You only need the part which syncs the output to S3 (https://github.com/cynkra/cynkraweb/blob/main/.github/workflows/s3-push.yaml#L365-L377). Everything else is done behind the scenes on AWS.

Just let me know once everything is ready.

christophsax commented 12 months ago

@maelle, thank you so much for the great work! To me, the current version is good enough to publish and link to the website, even with some details still open (#20, #6, #4). We can go forward with the launch and fix these later. Please let me know if you need anything.

maelle commented 11 months ago

@pat-s did your last comment mean you'd be the one editing the workflow or should I try?

pat-s commented 11 months ago

You can try and I can help and do the cloudfront stuff later on.

maelle commented 11 months ago

realizing we probably also need some sort of preview :eyes:

krlmlr commented 11 months ago

We can also implement a pull workflow (cynkraweb pulls from cynkrablog). Let's see what works best.

christophsax commented 10 months ago

Do we still need something to get this running? @maelle, please let me know if I can help to move this forward.

pat-s commented 10 months ago

We need at least a Cloudfront instance and DNS mapping to get this going. I was waiting on some action from your side, see https://github.com/cynkra/cynkrablog/issues/16#issuecomment-1725935826.

We'd also need an S3 bucket to store the source files.

Workflows: most of what cynkraweb uses could just be c/p.

christophsax commented 10 months ago

@pat-s many people with many ideas in the thread, it's not obvious to me what to do. Cloudfront and DNS mapping could be set up on your side, @pat-s?

@maelle is in charge for this, so she should say what to do next.

maelle commented 10 months ago

I wanted to get the HTML checks working before that but maybe it's not needed (I planned to work on it next Monday). Sorry about the delay!

christophsax commented 10 months ago

No worries at all. There are many things to figure out. I just would like to ensure it's not hanging at a particular point for some reason. If we have blockers, I am happy to discuss and help to unblock them. Thanks a lot!

pat-s commented 10 months ago

I am also just here to help, not to complicate things 🙂

maelle commented 10 months ago

what's needed in https://github.com/cynkra/cynkrablog/pull/23? can you adapt it @pat-s or do you need more info?

I'll work on the HTML validation separately. The idea would be to add it later, that is to say, it shouldn't be a blocker.

pat-s commented 10 months ago

An S3 bucket cynkraweb-blog now exists which is used by a Cloudfront instance to serve content. Once #23 is pushed to main, files will be pushed to that bucket and the site blog.cynkra.com will be live (!).

If you want to not publish it for now while still being able to merge into main, consider disabling the S3 sync step.