-
-
Notifications
You must be signed in to change notification settings - Fork 615
Feature/fix issue 1959 - Publish an official isort Docker image #2428
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2428 +/- ##
=======================================
Coverage 99.19% 99.19%
=======================================
Files 39 39
Lines 3090 3090
Branches 680 680
=======================================
Hits 3065 3065
Misses 14 14
Partials 11 11 🚀 New features to boost your workflow:
|
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| # Build a new Docker image and push it to the GitHub Container Registry |
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.
Honestly, I have no clue what I'm looking at here. Is there perhaps a link you can share with some example of another project that has a similar setup?
|
|
||
| # Install uv | ||
| COPY --from=ghcr.io/astral-sh/uv:0.6.0 /uv /uvx /bin/ | ||
| RUN pip install --no-cache-dir uv |
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.
Why not copy from ghcr.io? And can we take the version as defined in pyproject.toml?
| RUN touch /isort/README.md | ||
| COPY . /isort | ||
| RUN SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uv sync --all-extras --frozen | ||
| RUN SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uv build . |
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.
Shouldn't this be a different version?
This adds steps to the existing release workflow, which package the isort Python distribution as a Docker image and push it to the GitHub container registry.
This fixes #1959.