ovh/cds

Question on how to setup.

ebo-bpi opened this issue · 1 comments

We have a monorepo (nx / next) from which we build several applications.
reading the documentation concepts we could build this in multiple ways:

  1. create a pipeline with a job for every app.(checkout, build)
  2. create workflow with a pipeline and reuse this to build all apps.

What is in your opinion the way we should set this up?
We build from 1 source, so I would like to reuse the checkout if possible. (reduce waiting time and io)
End result is a docker container which should be deployed in a later stage. (other pipeline or workflow?)

I would like to do a build for all affected apps (nx feature) and add this as a result status to the pr.
With multiple pipelines this will result in multiple pr comments for every app. (did not find a way to do this at workflow level)

Hope you guys could give me some hints what the best approach would be

Hi,

We suggest you to use only one workflow. We build CDS like this (which contains multiples apps as cdsctl, engine, ui, etc...)

The workflow:
Capture d’écran 2022-09-22 à 14 58 58

The build-all-cds pipeline:
Capture d’écran 2022-09-22 à 14 59 32
This pipeline build the binaries in the first stage, then make the docker image in the second, then run integration tests...

If you need to customize the PR comment, you can worker export a variable and use it in the VCS Notification PR Body.