Explored the internetz and figured out how to sell access to - GitHub/GitLab deploy keys

I expect use-cases with tools like CircleCI and GitHub Actions to deploy apps after test-suite passes.

If I host the pip package myself and if users do not cache package/dependency fetching, then I'll be drowned in recurring (monthly) bandwidth cost.

Creating GitHub/GitLab Deploy keys for each customer will help me offload the cost for recurring traffic. Got this idea after exploring the services that allow users to offer paid access to GitHub repo (Hat tip: GitStore).
Akash Manohar Author

So the onboarding/setup is:

  • painless-deploy as a pip package available for free - but that'll include just the python script that runs the setup and deployment scripts. I'll make this public.
0 Likes
Akash Manohar Author

[Hit enter too early in the previous comment]

  • The second part is the git repo with actual deployment scripts - which users can only access with the deploy SSH key created at the time of their purchase

This two-part distribution is intentional to avoid further steps in the onboarding. The python pip package has other python dependencies that will be pulled in automatically during install.

So the setup is going to be:

pip install painless

The below stuff will be copied from the site
by the user after purchase
(very rough. Just typing this out)

mkdir ~/.painless
echo "bla bla bla deploy key" > ~/.painless/key
GIT_SSH_COMMAND="ssh -i ~/.painless/key" git clone git@github.com:painlesstools/painless-deploy.git
0 Likes

Please sign in to leave a comment.