tl-its-umich-edu / my-learning-analytics

My Learning Analytics (MyLA)
Apache License 2.0
36 stars 39 forks source link

Building the docker image using GitHub actions and registry #1523

Closed pushyamig closed 1 year ago

pushyamig commented 1 year ago

The PR add a workflow where each commit to master we will have a Docker build via github action and final images are pushed to Github Container registry.

Openshift Pull these images from Github Container registry https://docs.openshift.com/container-platform/4.11/openshift_images/image-streams-manage.html#images-imagestream-import_image-streams-managing

Full working model is here (Note: The POC is not from this code since the push variable need to target to a branch instead of master

  1. Github actions https://github.com/pushyamig/my-learning-analytics/actions
  2. Github registry https://github.com/pushyamig/my-learning-analytics/pkgs/container/my-learning-analytics
  3. Github branch used for POC https://github.com/pushyamig/my-learning-analytics/blob/ghactions/.github/workflows/main.yml
  4. Openshift pulling from Github registry https://console-openshift-console.apps.containersprod.art2.p1.openshiftapps.com/k8s/ns/myla-beta/imagestreamtags/pu-test%3Alatest/history
  5. Myla running from this workflow https://umich.beta.instructure.com/courses/562259/external_tools/54703
pushyamig commented 1 year ago

This branch has latest changes from master now