---
title: "Releasing Loki Build Image | Grafana Loki documentation"
description: "Releasing Loki Build Image"
---

# Releasing Loki Build Image

The [`loki-build-image`](https://github.com/grafana/loki/blob/main/loki-build-image) is the Docker image used to run tests and build Grafana Loki binaries in CI.

The build and publish process of the image is triggered upon a merge to `main` if any changes were made in the folder `./loki-build-image/`.

**To build and use the `loki-build-image`:**

1. Create a branch with the desired changes to the `./loki-build-image/Dockerfile`.
2. Update the `BUILD_IMAGE_VERSION` variable in the `Makefile`.
3. Commit your changes.
4. Run `make build-image-push` to build and publish the new version of the build image.
5. Run `make release-workflows` to update the Github workflows.
6. Commit your changes.
7. Push your changes to the remote branch.
8. Open a PR against the `main` branch.
