-
Notifications
You must be signed in to change notification settings - Fork 849
feat(ci): build Docker Image on PRs #382
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
Conversation
6b81e1e
to
f8f9968
Compare
f8f9968
to
c2d9c30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a GitHub Actions workflow to build the Docker image on pull requests and updates the CLI entry point import to use __main__.py
.
- Redirect CLI entry point from
gitingest.cli
togitingest.__main__
- Update
pyproject.toml
scripts to call the new module path - Introduce
.github/workflows/docker_image.yml
to build Docker images on PRs
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
tests/test_cli.py | Updated import and test assertion to reference __main__.py |
pyproject.toml | Changed gitingest script entry to gitingest.__main__:main |
.github/workflows/docker_image.yml | Added CI workflow to build Docker image on pull requests |
Comments suppressed due to low confidence (1)
.github/workflows/docker_image.yml:25
- Using only the commit SHA as a Docker tag may obscure the image registry or repository. It’s clearer to include the registry/repo prefix (e.g.,
ghcr.io/<owner>/gitingest:${{ github.sha }}
) so tags are unambiguous.
tags: "${{ github.sha }}"
2b7922d
to
c2d9c30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just this minor cosmetic adjustment, but otherwise it looks good to me.
Co-authored-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com>
* feat(ci): add GitHub Actions workflows for Docker image build and rename PyPI publish * chore: rename cli module to __main__ so it can be executed without having to build * Update .github/workflows/docker_image.yml Co-authored-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com>
Closes #370
First step to try and deploy in a cleaner way