From df5abd5cc76ebbd18054649bd452026d8c8cd24c Mon Sep 17 00:00:00 2001 From: Michael Derynck Date: Tue, 30 Aug 2022 07:55:21 -0600 Subject: [PATCH] Update DEVELOPER.md Move drone section and add to table of contents. --- DEVELOPER.md | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index 7fd8fb04..6612a8e7 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -1,7 +1,9 @@ * [Developer quickstart](#developer-quickstart) + * [Code style](#code-style) * [Backend setup](#backend-setup) * [Frontend setup](#frontend-setup) * [Slack application setup](#slack-application-setup) + * [Update drone build](#update-drone-build) * [Troubleshooting](#troubleshooting) * [ld: library not found for -lssl](#ld-library-not-found-for--lssl) * [Could not build wheels for cryptography which use PEP 517 and cannot be installed directly](#could-not-build-wheels-for-cryptography-which-use-pep-517-and-cannot-be-installed-directly) @@ -131,6 +133,22 @@ extra_hosts: For Slack app configuration check our docs: https://grafana.com/docs/grafana-cloud/oncall/open-source/#slack-setup + +### Update drone build +The .drone.yml build file must be signed when changes are made to it. Follow these steps: + +If you have not installed drone CLI follow [these instructions](https://docs.drone.io/cli/install/) + +To sign the .drone.yml file: +```bash +export DRONE_SERVER=https://drone.grafana.net + +# Get your drone token from https://drone.grafana.net/account +export DRONE_TOKEN= + +drone sign --save grafana/oncall .drone.yml +``` + ## Troubleshooting ### ld: library not found for -lssl @@ -241,18 +259,3 @@ pytest -n4 5. Create a new Django Server run configuration to Run/Debug the engine - Use a plugin such as EnvFile to load the .env file - Change port from 8000 to 8080 - -## Update drone build -The .drone.yml build file must be signed when changes are made to it. Follow these steps: - -If you have not installed drone CLI follow [these instructions](https://docs.drone.io/cli/install/) - -To sign the .drone.yml file: -```bash -export DRONE_SERVER=https://drone.grafana.net - -# Get your drone token from https://drone.grafana.net/account -export DRONE_TOKEN= - -drone sign --save grafana/oncall .drone.yml -```