# Build & Deploy

Follow the instructions [here](/platform/guides/developer-guide/backend-developer-guide/section-7-build-and-deploy-instructions.md) to set up the job pipeline. Ignore the steps not applicable to the frontend.

{% hint style="info" %}
Instructions here are provided assuming CD/CI has been set up using the DIGIT ci-as-code module.
{% endhint %}

<details>

<summary>Build </summary>

Method - 1 (Through Jenkins):\
Go to the Jenkins build page. Click on digit-ui under the folder path mentioned below. The entire UI module is built as a monolith. Since this module is also part of the same monolith, the entire UI module has to be built and redeployed.\
`frontend/micro-ui/digit-ui/`

<img src="/files/ADpXCFn4aRfcwBCbR7Ir" alt="" data-size="original">

Click on `Build with parameter`. Select the feature branch name by searching for it in the search box on the right side of the screen. Click on Build.

<img src="/files/Fd00vlYqoIWBwmlUOUUL" alt="" data-size="original">

Once the build is successful, open the console output and find the Docker image that has been built. Copy the Docker image ID.

<img src="/files/dXVjj4ipukt44NaA4Le7" alt="" data-size="original">

**Method - 2(Recommended through Github actions) :**&#x20;

* Navigate to GitHub Actions\
  ![](/files/buuD02iLSB566cYw0l8L)
* Click on build pipeline\
  ![](/files/1LxGPCJj05ai0BAiVHQO)
* Click on the Run workflow dropdown\
  ![](/files/UvEXBpOinmplPPPuLjQR)
* Select the branch name and module from the dropdown and hit the Run workflow button
* Once the build is successful, copy the build image name from the summary.

*Note: Make sure the "build.yaml" file is available under the .github/workflows folder.*

</details>

<details>

<summary>Deploy</summary>

Link:- <https://builds.companyname.org/job/deployments/job/deploy-to-dev/build?delay=0sec>

<img src="/files/dfbcGmMmTc6K3w51dceu" alt="" data-size="original">

Copy the Docker image IDs from the previous step and paste them in the above box. Click on "Build". Once the image is deployed, you will see a message as shown below:

<img src="/files/ZdwVta4qmhk7kRrrP7XL" alt="" data-size="original">

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digit.org/platform/guides/developer-guide/ui-developer-guide/build-and-deploy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
