gh-action-pypi-publish icon indicating copy to clipboard operation
gh-action-pypi-publish copied to clipboard

Build&publish the base container to GHCR + point to it from action

Open webknjaz opened this issue 4 years ago • 6 comments

Example image build+publish workflow: https://github.com/ansible/pylibssh/blob/devel/.github/workflows/build-manylinux-container-images.yml

Example of an action pointer: https://github.com/fedora-python/tox-github-action/blob/9f7d1ff/action.yaml#L14

webknjaz avatar Mar 25 '21 12:03 webknjaz

More needed now that 2FA is being enforced as the build times are quite long.

richard-engineering avatar Oct 16 '23 13:10 richard-engineering

What does it have to do with 2FA?

webknjaz avatar Oct 16 '23 13:10 webknjaz

This Github Action is officially recommended by the official PyPI docs linked to by the article on 2FA enforcement. Previously prior to 2FA enforcement uploading could be done via username/password (eg via flit publish) in CI which is a rather quick process. It's unfortunate that the recommended reference solution linked in the documentation can take up to 5+ minutes to build. Putting this on GHCR would avoid the need to build the images.

richard-engineering avatar Oct 16 '23 17:10 richard-engineering

Using API tokens still works, it hasn't gone anywhere. Putting shared username+password pairs online was always problematic, and everyone should've switched to scoped API tokens like 5 years ago.

webknjaz avatar Oct 16 '23 19:10 webknjaz