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

Switch to GitHub actions to deploy #4

Open
3 of 5 tasks
dustinwalker opened this issue Feb 22, 2021 · 4 comments
Open
3 of 5 tasks

Switch to GitHub actions to deploy #4

dustinwalker opened this issue Feb 22, 2021 · 4 comments

Comments

@dustinwalker
Copy link
Member

dustinwalker commented Feb 22, 2021

Proposal is to use Github actions for build and deploy process.

Pros:

  • Decouple nodejs from the server, as it won't be building it. We can use different build processes on same server.
  • Offload process resources from production server to Github's Docker
  • Enable things like linting on building
  • Email notifications of issues

Cons:

  • Difficult branch switching (idea next comment)
  • Reliant on GitHub queue to deploy
  • Limited to 2000 minutes of free build time

Requirements

  • Strategy to handle staging and production
  • Scope version tags to master/main only
  • Possibly look into symlinking directories (not sure this is needed considering how fast rsync is)
  • Update toolkit to handle populating sample data
  • Add documentation
@dustinwalker
Copy link
Member Author

dustinwalker commented Feb 22, 2021

My idea to handle triggering the deployment around tags. I don't have it working perfectly yet (mostly around ignore -rc and -beta tags on production) but the idea is:

  • <vx.x.x> would deploy to production
  • <any-other-tag> deploys to staging
  • <any-tag>-beta or <any-tag>-rc would lint the project and email any code issues in src

@dustinwalker
Copy link
Member Author

If you want to see the yaml that controls this: https://github.com/astuteo-llc/build-config/tree/feature/5/reference/.github/workflows

@dustinwalker
Copy link
Member Author

@astuteo would you be up for testing this out on the Biotech project?

@astuteo
Copy link
Member

astuteo commented Feb 22, 2021

Sure, it's just a giant sandbox for everything at this point.

dustinwalker added a commit that referenced this issue Feb 22, 2021
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