Skip to content

Release container images manually from the latest version on PyPI - #322

Merged
Lawouach merged 1 commit into
masterfrom
manual-container-release
Sep 28, 2026
Merged

Lawouach merged 1 commit into
masterfrom
manual-container-release

Conversation

@Lawouach

Copy link
Copy Markdown
Contributor

Summary

The 1.21.1 release published to PyPI, but the container job gave up after 5 minutes: PyPI's JSON API listed 1.21.1 while the index pip reads still stopped at 1.21.0, for well over 15 minutes.

  • Manual run (workflow_dispatch): packages the latest chaostoolkit that pip can actually install from PyPI, or the version given in the new optional version input. The image is tagged latest and with that version, as before.
  • Release run (workflow_call from release.yaml): unchanged, it packages the release tag.
  • The wait for the version to be installable goes from 5 to 20 minutes.
  • Inputs are passed through environment variables, not interpolated into the script.

Usage

gh workflow run containers.yaml                       # latest on PyPI
gh workflow run containers.yaml -f version=1.21.1     # a given version

Testing

  • actionlint clean.
  • The version lookup (pip download --no-deps chaostoolkit, then reading the wheel's name) run locally gives the version pip installs.

Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
@github-actions

Copy link
Copy Markdown

⚠️ Tests not modified ⚠️

We've noticed your Pull Request did not modify any tests 🔍

If your change requires tests, please add them 😄

You'll notice that the check-tests step passed with ✅, this
is not a confirmation that you've modified tests.

@Lawouach
Lawouach merged commit a288252 into master Sep 28, 2026
9 checks passed
@Lawouach
Lawouach deleted the manual-container-release branch September 28, 2026 12:45
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.

1 participant