Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vtex| CICD setup | how to avoid all prompts comes up in vtex commands #683

Open
rgangarde opened this issue May 24, 2022 · 1 comment
Open
Labels
question Further information is requested

Comments

@rgangarde
Copy link

rgangarde commented May 24, 2022

What are you trying to accomplish? Please describe.
I am trying to setup a CI/CD pipeline for a new VTEX store. For example, I would like to be able to automatically release a new version of an app after a merge to main. I am using Gitlab CI to do same. I want to have 3 stages in CI.

  1. dev-env-deploy 2. staging-env-deploy 3. prod-env-deploy
    I am using workspace as individual environments to have 3 environements to have CICD way of development.

I am able to login to vtex as a part of CI. Main problem now is, when I run any of below commnds

  1. vtex link
  2. vtex install
  3. vtex publish
  4. vtex deploy

It prompts to enter "Y/N" options, which needs to be avoided in CI/CD.
And also, it does not prompt always.

Screenshot 2022-05-24 at 3 07 40 PM

Any idea how to resolve this?

What have you tried so far?
There is --yes flag which can be passed but it is not available for some of the above commands.

Account Workspace
liniomx dev
@rgangarde rgangarde added the question Further information is requested label May 24, 2022
@jpesce
Copy link

jpesce commented Aug 3, 2022

How did you work out the login part?
Have you tried using the yes command?

touch test.txt && yes | rm -i test.txt

You can also use echo

touch test.txt && echo "y" | rm -i test.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants