Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mediowen
Copy link
Contributor

Hello,

I don't like adding extra runtimes for CLI tools, but this is basically the only CLI-friendly Bitbucket API client I could find (thanks for this! 😁). I took it upon myself to setup a Docker container workflow that'd build and push to GitHub Container Registry at release time, so there's a lower-impact option for those who don't feel like contending with PHP directly.

Please let me know if this is desired at all - it works really well for me and the tool is small and light enough that I don't feel any extra overhead running it as a container. For what it's worth, you can see the end product here (though this will naturally publish as ghcr.io/bb-cli/bb-cli): https://github.com/mediowen/bb-cli/pkgs/container/bb-cli. To test, you can just use alias bb='docker run -it --mount type=bind,source="$HOME/.bitbucket-rest-cli-config.json",target=/root/.bitbucket-rest-cli-config.json --mount type=bind,source="$(pwd)",target=/workdir --rm ghcr.io/mediowen/bb-cli:1.2.0

As per your own recommendation, I'd suggest squashing this PR :) many commits are just bits of trial/error.

Thanks!

@semiherdogan
Copy link
Member

Hi,
Thanks for the pr.
We weren't thinking about adding docker at the moment but your pr seems fine.
we will test it in upcoming days and try to merge it,
maybe we can use docker hub instead of github (not sure yet)

@mediowen
Copy link
Contributor Author

mediowen commented Nov 5, 2024

That makes sense - it should be fairly easy to add Docker Hub to the mix instead, just that GHCR is easily available and Actions runners get credentials vended to them as necessary without any extra effort needed. Merging this PR would effectively build and package at ghcr.io/bb-cli-bb-cli:latest and a given tag (I assume :v1.2.0 or similar) without any further handling of secrets/credentials.

@dinncer
Copy link
Member

dinncer commented Nov 6, 2024

I have tried locally and it works without any errors. We will merge this PR.

@semiherdogan semiherdogan merged commit 54397ab into bb-cli:main Nov 6, 2024
@semiherdogan
Copy link
Member

@mediowen thank you for your work.

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.

3 participants