CI/CD & Docker Publishing Setup
This document explains how to configure GitHub so this repository’s CI/CD pipeline can build and push Docker images to GitHub Container Registry (GHCR). This uses the provided workflows here.
Repository Settings
The workflows will need permission to write to the repository.
- Go to Repository → Settings → Actions → General
- Under Workflow permissions, select:
- Read and write permissions
- (Optional but recommended) Allow GitHub Actions to create and approve pull requests
- Save.
This ensures the GITHUB_TOKEN created in workflows has permission to push to GHCR.
Package Repository Link
GHCP packages must be linked to this repository:
-
Go to https://github.com/users/OWNER/packages/container/student-solver-tool/settings
(Replace
<OWNER>with your actual Github username or org name. This link also assumes that your repository name is calledstudent-solver-tool) -
Under Repository links, link this repo.
-
Under Manage access, ensure:
The repository has Write access
(Optional) Specific teams/users can also be granted access.
Verification
To test everything works:
- Push to
main(pr preferred) - Watch the Action tab →
CIworkflow →dockerjob - Confirm the image is published at:
ghcr.io/<OWNER>/<REPO>:<tag>