Running integration tests requiring credentials with auto devops
We have an auto devops pipeline that works well. Yet, we have not found a way to execute our integration tests as part of the pipeline.
The execution of the tests is triggered as part of a multi-stage docker image build. Some of the integration tests require accessing external resources (e.g., an external API), and for that it is necessary to use credentials that grant access to these resources.
To achieve this, we thought of injecting the credentials as environment variables in the docker image build. But, we have found out that auto devops only makes available a fixed set of environment variables (non-custom ones) to the image being built.
Is there any solution that would allow us to execute the integration tests as part of an auto devops pipeline?