Build commands post install using the auto devops helm chart

Hello all,

I’m trying to install a web app running node and build it using yarn. I’m able to build a docker image with node, npm and yarn installed and started, and then created a review app using that docker image with the auto devops helm chart in gitlab.com and managed to push it to a Kubernetes cluster.

That is all good, except when trying to build the web app with the command yarn build. Running the command with the Dockerfile doesn’t work. I’ve been able to run it manually by connecting to the docker container running the image mentioned above.

The web app is built and responds fine. But obviously I’m looking for an automated way to run the command (yarn build) after the review app is installed/deployed by the gitlab runner in the kubernetes cluster. I’ve read about using helm hooks but not sure if and how to do it using the auto devops chart with gitlab.

Can someone please help me or point me in the right direction?

Thanks in advance!