Menu
This is documentation for the next version of Loki. For the latest stable release, go to the latest version.
Open source
Releasing Loki Build Image
The 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
:
Step 1
- create a branch with the desired changes to the Dockerfile
- update the version tag of the
loki-build-image
pipeline defined in.drone/drone.jsonnet
(search forpipeline('loki-build-image')
) to a new version number (try to follow semver) - run
DRONE_SERVER=https://drone.grafana.net/ DRONE_TOKEN=<token> make drone
and commit the changes to the same branch- the
<token>
is your personal drone token, which can be found by navigating to https://drone.grafana.net/account.
- the
- create a PR
- once approved and merged to
main
, the image with the new version is built and published- Note: keep an eye on https://drone.grafana.net/grafana/loki for the build after merging (example)
Step 2
- create a branch
- update the
BUILD_IMAGE_VERSION
variable in theMakefile
- run
loki-build-image/version-updater.sh <new-version>
to update all the references - run
DRONE_SERVER=https://drone.grafana.net/ DRONE_TOKEN=<token> make drone
to update the Drone config to use the new build image - create a new PR
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Getting started with logging and Grafana Loki
See a demo of the updated features in Loki, and how to create metrics from logs and alert on your logs with powerful Prometheus-style alerting rules.

Essential Grafana Loki configuration settings
This webinar focuses on Grafana Loki configuration including agents Promtail and Docker; the Loki server; and Loki storage for popular backends.

Scaling and securing your logs with Grafana Loki
This webinar covers the challenges of scaling and securing logs, and how Grafana Enterprise Logs powered by Grafana Loki can help, cost-effectively.