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

Cannot create CI/CD process for re-publishing Mesh #127

Open
nuzil opened this issue Mar 12, 2024 · 0 comments
Open

Cannot create CI/CD process for re-publishing Mesh #127

nuzil opened this issue Mar 12, 2024 · 0 comments

Comments

@nuzil
Copy link

nuzil commented Mar 12, 2024

I'm trying to create CI/CD process for Mesh. So goal is to have Gitlab pipeline which triggers mesh update everytime mesh being updated in git repository.

By following documentation I can create CI/CD for deploying App Builder application and it works fine, but I cannot do the same for mesh.

Expected Behaviour

After I configured by Secrets,

aio api-mesh update mesh.json

Have to update mesh without using browser login again and again. Same as command

aio app deploy

So just to be clear, exactly same project, execute deploy command without asking for browser login, but mesh publish do - which makes impossible to implement CI/CD pipelines.

Actual Behaviour

aio api-mesh update mesh.json asking to login if run inside pipeline even if aio app deploy not

Steps to Reproduce

  1. Create New App Builder application
  2. deploy application with aio app deploy
  3. Application successfully deployed.
  4. Run any aio api-mesh create mesh.json command
  5. You will be forced to login via browser.

Logs taken while reproducing problem

Some notes: I see that mesh plugin has own auth helpers:

@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-api-mesh/src/helpers.js

which maybe working in different manner then default auth mechanism.

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

No branches or pull requests

1 participant