feat: add GitHub Actions workflow for publishing Python packages and Docker image

Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
d9pouces
2026-09-20 22:37:23 +02:00
parent 7ddd3ac09b
commit 39fdbb7f40
3 changed files with 178 additions and 35 deletions
+4 -1
View File
@@ -74,15 +74,18 @@ description =
The version is taken from the pyproject.toml file.
Make sure that you have the rights to upload the image to Docker Hub.
commands =
python3 -m uv sync --all-groups --active
python3 -m uv sync --all-groups -U --active
python3 -m id_tools build docker --platform linux/amd64,linux/arm64/v8 --push
python3 -m id_tools publication sign-docker
python3 -m uv build
python3 -m uv publish
docker =
passenv =
COSIGN_PASSWORD
COSIGN_PRIVATE_KEY
DOCKER_HUB_LOGIN
DOCKER_HUB_TOKEN
UV_PUBLISH_TOKEN
[docker:pypi-repo]
dockerfile = {tox_root}/tests/dockerfiles/repos/pypi-repo.Dockerfile