Skip to content
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

Set up CD pipeline #6

Open
simonwiles opened this issue Aug 15, 2023 · 2 comments
Open

Set up CD pipeline #6

simonwiles opened this issue Aug 15, 2023 · 2 comments

Comments

@simonwiles
Copy link
Member

I'm not sure how much to do here: one the one hand a fully automated system with a staging deploy would be cool, and might be fun; on the other, it would be easier and simpler to just do manual deploys...

@mbingenheimer
Copy link
Contributor

mbingenheimer commented Aug 15, 2023 via email

@simonwiles
Copy link
Member Author

Thanks yeah -- so the actual build process will be scripted (the beginning of that is already done at bin/gh-deploy.sh), and that will fetch the additional needed repositories and build and publish the site. It can be set up as a button on the GitHub interface for use by those with appropriate permissions. It's common in many project to have that happen automatically when commits are made to a special branch -- either just the main branch (with development work happening in feature/fix branches) or in a special production branch or similar.

The situation here is complicated by two things: 1) our rebuilds are going to be necessitated more by new commits in other repos; and 2) I would like to make it possible for folks to be able to preview the changes they have made (i.e. check it all works) before deploying to the production site.

With manual deploys we wouldn't need to worry about (1) (and it's a relatively straightforwardly surmountable obstacle anyway, if needs be). For (2), on my own I would probably just build and test the site locally before deploying -- but that's a more involved undertaking that I wouldn't necessarily want to put on others, so I was imagining an automatic build to, e.g., staging.nanyang-data.info or preview.nanyang-data.info whenever data or content is updated to make it easier for folks to preview changes. Perhaps not necessary 🤷?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants