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 environments & GitHub Actions for services #225

Open
2 tasks done
r002 opened this issue Jul 21, 2021 · 2 comments
Open
2 tasks done

Set up environments & GitHub Actions for services #225

r002 opened this issue Jul 21, 2021 · 2 comments
Labels
2021-07 July 2021 tuesday Tuesday

Comments

@r002
Copy link
Member

r002 commented Jul 21, 2021

Tuesday

Today, I finally took the time to properly set up CI/CD for the services backend code. I've set up two environments:
image

The workflow setup:

  • Anytime a PR is made to main, that'll kick off a build in the QA environment. The branch being built must be named qa or patch-*.
  • Anytime code is pushed to main (eg. from a merge or direct push), that'll kick off a build in the PROD environment.

In addition to my Google App Engine code, the PROD build workflow also deploys the GCF (Google Cloud Function) for the UpdateMemberMetrics(...) function in PROD as well.

This was my first time setting up environments in GitHub Actions but everything went pretty smoothly! I encountered a tiny hiccup setting up the GitHub Action for GCF but the Google person was super-responsive and helpful! Basically, what I'd been concerned about was a total non-issue. 🤦‍♂️

Anyway, all of this devops stuff is properly set up now so I can finally get back to coding! 😄


Today's Tasks

  • Set up environments for GitHub Actions

  • Deploy Services 0.0.19 to PROD (this is the version that adds LastCard to the StudyMember model)

    image

    image


References 🔗

@r002 r002 added the daily accomplishment Daily Accomplishment label Jul 21, 2021
@studygroup-bot studygroup-bot added this to the Daily Accomplishment milestone Jul 21, 2021
@studygroup-bot studygroup-bot added 2021-07 July 2021 tuesday Tuesday and removed daily accomplishment Daily Accomplishment labels Jul 21, 2021
@anitabe404
Copy link

Cool. I'm just now getting into just how much functionality GitHub has. It's pretty cool.

@r002
Copy link
Member Author

r002 commented Jul 21, 2021

@anitabe404 Totally! GitHub is definitely my favorite website on the entire internet. The whole idea of random strangers meeting up and working towards learning/building a common edifice of code (a website, game, anything) that withstands the inexorable march of time and lasts for the remainder of human civilization is really fun to think about! 😄 Like, once you add/commit/push, that's pretty much going into the great Microsoft Azure cloud forever (though I actually think parts of GitHub are still on AWS, actually; but I'm sure it's all getting moved over slowly, ever since the buyout). "Git spelunking" is totally a thing though... probably the closest I'm ever gonna get to being a paleontologist! 🦖🦕😎

As far as social networks though, GitHub's really one of the few ones that humanity got right, IMHO. So many super-powerful tools... and all for free! Btw, lmk if you have any questions about the platform at all; I've learned a ton these past few weeks!

It's time to build! 🏗 Build, build, build!! 😀🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2021-07 July 2021 tuesday Tuesday
Projects
None yet
Development

No branches or pull requests

3 participants