Publish python package into private repository behind VPN



  • I'm using Github Actions to publish my python packages automatically. When working with PyPI everything works fine and providing different config to point on different repository is not an issue. But when repository (JFrong artifactory) is located behind VPN GH Actions is not able to push/fetch from there.

    What is the right approach to deal with such kind of situation? Is there any kind of existing solution for this issue?



  • So I found similar question (regarding installing, but works for publishing as well) https://stackoverflow.com/questions/73624685/install-python-package-from-private-artifactory-behind-vpn

    Basically, you can either setup GH Actions runner within VPN or use proxy to access your resorces.

    I have ended up using answer from comments

    my strategy would be to create a source code release zip file and publish it on GitHub and then download it from within the VPN to push it to the intern repository. github.com/marketplace/actions/create-github-release

    and still run separate job for publishing into internal repository.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2