Skip to content

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

Merged
merged 3 commits into from
Jul 5, 2025
Merged

Conversation

NicolasIRAGNE
Copy link
Contributor

@NicolasIRAGNE NicolasIRAGNE commented Jul 4, 2025

Closes #370

First step to try and deploy in a cleaner way

@NicolasIRAGNE NicolasIRAGNE force-pushed the feat/docker-ci branch 2 times, most recently from 6b81e1e to f8f9968 Compare July 5, 2025 11:26
@NicolasIRAGNE NicolasIRAGNE requested review from filipchristiansen and Copilot and removed request for filipchristiansen July 5, 2025 11:36
Copy link
Contributor

@Copilot Copilot AI left a 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 to gitingest.__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 }}"

Copy link
Contributor

@filipchristiansen filipchristiansen left a 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>
@filipchristiansen filipchristiansen merged commit bc8cdb4 into main Jul 5, 2025
19 checks passed
@filipchristiansen filipchristiansen deleted the feat/docker-ci branch July 5, 2025 19:04
ix-56h pushed a commit to ix-56h/gitingest that referenced this pull request Jul 7, 2025
* 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>
@coderamp-ci coderamp-ci bot mentioned this pull request Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Build docker image in CI
2 participants