-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Docker latest_release is pointing to an alpha version #3453
Comments
Yep seems busted, according to the docs for the official Docker image the
The latest release of black linked above is
|
I'm not an expert on Github Workflows, so I could very easily be wrong here, but it seems to me like the trigger line for this docker publish might be the problem.
This will run on every published release, regardless of |
According to this support article, that line may need to change to something like:
But then later on in the thread someone mentions a workflow they have that does not run on preleases, and gives the exact line that currently exists in Black's workflow. |
Scratch the "manual push", this was clearly triggered by CI: https://github.com/psf/black/actions/runs/3725518068/jobs/6318369959#step:8:176. So seems to me the |
@cooperlees do you know how to yank the docker release for 23.1a1? Or at least mark it as not the latest release. |
(I'm not who you asked so sorry for the noise but since I'm here anyway) The easiest way is probably for someone on the project with Dockerhub access to re-push the |
Reran the Docker action: https://github.com/psf/black/actions/runs/3658832710/jobs/6334595544 Unfortunately people will have to manually use 23.1a1 to test alpha, but not the worst scenario. I will try find time to cleanup the action for this new alpha workflow so we can't do this again. PRs welcome if you have a potential fix too. |
- When we do a pre-release lets not move the latest_release tag - This tag should only move on official real releases Fixes #3453
* Do not move docker `latest_release` tag for Pre-Releases - When we do a pre-release lets not move the latest_release tag - This tag should only move on official real releases Fixes #3453 * Make it prettier - TIL we format our yaml
FYI @cooperlees if you wanted to add something to support the Alpha image workflow, given the behavior we've seen in this issue it might be as easy as adding another job to the docker workflow: - name: Build and push latest_alpha tag
if:
${{ github.event_name == 'release' && github.event.action == 'published' && github.event.release.prerelease }}
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: pyfound/black:latest_alpha Could call it |
Thanks for the good ideas. Will take into consideration and probably implement! PR welcome. More tags won't hurt. |
Have a gander: #3465 |
* Do not move docker `latest_release` tag for Pre-Releases - When we do a pre-release lets not move the latest_release tag - This tag should only move on official real releases Fixes psf#3453 * Make it prettier - TIL we format our yaml
The latest docker release on docker hub is pointing to an alpha version. I would have expected
latest_release
to be the latest release, and not the very latest on git.Is there a way to fix this to go back to 22.12.0?
The text was updated successfully, but these errors were encountered: