CI/CD Deployment of API Mesh via Bitbucket Pipelines
Hi,
I'm currently trying to set up deployment of an API Mesh application via Bitbucket Pipelines.
I know that there is an existing GitHub actions workflow, but I cannot use GitHub at this point. I have tried to copy most of the steps from the GitHub actions workflow, but I am getting an error.
Rather than generating a token via curl or something along those lines, I am setting a "ci" context via aio config:set ims.contexts.ci --json --file ci-context.json, which appears to be working. I am able to generate an access token via aio auth:login --no-open, but then following commands, such as aio console org:select or even aio api-mesh:describe get the following error:
IMSOAuthLibError: [IMSOAuthSDK:IMSOAUTHCLI_LOGIN_CI_ERROR] Interactive login is not supported in CI environments. Use a service account and configure credentials via environment variables. See: https://developer.adobe.com/app-builder/docs/guides/deployment/ci_cd_for_firefly_apps/
Code: IMSOAUTHCLI_LOGIN_CI_ERROR
Based on the GitHub action setting the environment variable AIO_IMS_CONTEXTS_CLI_ACCESS__TOKEN_TOKEN, I tried setting this, as well as AIO_IMS_CONTEXTS_CI_ACCESS__TOKEN_TOKEN, along with setting values via aio config:set ims.contexts.ci.access_token $token, etc. but I just keep getting the same error.
Additionally, the documentation mentioned in the error message redirects to https://developer.adobe.com/app-builder/docs/guides/app_builder_guides/deployment/cicd-for-app-builder-apps, and is completely unhelpful, as it just talks about GitHub actions. There is a very small section titled "Bring your own CI/CD pipeline", which has basically zero details about what needs to happen.
Does anyone know how to get past this error and have the mesh actually deploy?