I’m trying to set up CI/CD for a project, but I can’t use the vtex login xxxx command inside the pipeline. I spin up a Docker image with Node and install the VTEX CLI, but the login doesn’t work because it tries to open a browser, which isn’t supported in Docker. Has anyone done something similar? Is there a way to log in by passing a username and password, or a token?
I saw a discussion about this a while back, they didn’t reach any official solution in that thread, but there are some interesting points here, worth checking out.
I’m currently building some custom Github Actions for my team to automate deployments, I will share once done, and they are working without issues. I have to modify the Toolbelt due to the custom yes / no prompts for some of the commands.
And besides that, I found a pretty recent repo related to GitHub Actions that might give you a starting point: GitHub - vtex/action-toolbelt-login: Perform login with VTEX Toolbelt using App Key/Token · GitHub