Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.22 KB

DEVELOPING.md

File metadata and controls

47 lines (33 loc) · 1.22 KB

Setting up a local development environment

Install prerequisites

Define local CI variables

Use the following example to create .gitlab-ci-local-variables.yml.

{
    read -rp 'GitHub token: ' dockerhub_user
    read -rsp 'DockerHub token: ' dockerhub_token
    dockerhub_auth=$(printf '%s:%s' "$dockerhub_user" "$dockerhub_token" | base64)

    cat <<EOF >.gitlab-ci-local-variables.yml
---
GITHUB_OWNER: 'node13h'
GITHUB_REPO: 'grafana-dashboards'
GITHUB_TOKEN: '${github_token}'
EOF
}

Running builds locally

Run make pipeline to run the pipeline defined in .gitlab-ci.yml.

See Makefile for more details.

Releasing

To build and publish the rendered dashboards as GitHub artifacts

  • Create an annotated (to track the release date) Git tag using vX.Y.Z format. X.Y.Z must match the version in VERSION.
  • Push the tag to GitHub.
  • Ensure the Git working tree is clean.
  • Run make tag-pipeline.
  • Increment the version number in VERSION and commit the change.

Updating Grafonnet

Run make update-deps to update Grafonnet library and it's dependencies.