-
The GitHub action configuration in /.github/workflows/main.yml uses Dockerfile to build the app, then pushes the image to the GitHub container registry (GHCR).
-
The action is triggered whenever a commit is made to the
master
branch. E.g., when a pull request is merged tomaster
. -
OpenShift projects can periodically pull this image from GHCR. Configure only NON-PRODUCTION MyLA projects to pull the image…
oc tag ghcr.io/tl-its-umich-edu/my-learning-analytics:latest my-learning-analytics:latest --scheduled --reference-policy=local
See the OpenShift documentation "Managing image streams: Configuring periodic importing of image stream tags" for details.
reference-policy=local
: If you want to instruct OpenShift Container Platform to always fetch the tagged image from the integrated registry