stamford-syntax-club / course-compose

Course Compose is a course-review website tailored for Stamford students, providing a platform for sharing and discovering insights about various courses
MIT License
2 stars 0 forks source link

feat: implement ci pipeline, dockerize reviews service, restructure backend folders #14

Closed chinathaip closed 11 months ago

chinathaip commented 11 months ago

CI Pipeline

  1. when new changes are merged into main, dev.yaml triggers
  2. the pipeline setup all the dependencies, and use turbo run build --filter=...[origin/main] which retrieves the package name that have been changed when compared to the main branch
  3. the pipeline uses jq to convert the resulting array into json with the following format
    [
    {
      "name" : "<package name>",
       "imageTag":  "<ghcr.io/stamford-syntax-club/course-compose:<package name>-<github SHA>"
    }
    ]
  4. the pipeline triggers another workflow (deploy-ghcr.yaml) which will build a docker image from specified package and upload to GitHub Container Register with the tag specified in step 3

Folder restructure