|
1 | 1 | # Release and publish a new version |
2 | 2 |
|
3 | | -1. Every commit to master is a possible release. |
4 | | -2. Version in plugin.json is used for deciding which version to release. |
| 3 | +Remember that every commit to master is a possible release. |
5 | 4 |
|
6 | 5 | ## Prepare |
7 | 6 |
|
8 | 7 | 1. Update `version` and `updated` properties in plugin.json. |
9 | 8 | 2. Update CHANGELOG.md. |
10 | 9 | 3. Merge/push changes to master. |
11 | | -4. Commit is built in [Drone](https://drone.grafana.net/grafana/grafana-image-renderer). |
12 | 10 |
|
13 | | -## Promote release |
| 11 | +## Release |
14 | 12 |
|
15 | | -1. Open [Drone](https://drone.grafana.net/grafana/grafana-image-renderer) and find the build for your commit. |
16 | | -2. Click on the `...` from the top-right corner to display the menu, then click on `Promote`. |
17 | | -3. Fill the `Create deployment` form with the values below, and click on `Deploy`: |
18 | | - - `Type` = `Promote` |
19 | | - - `Target` = `release` *(write it manually)* |
20 | | - - *(no parameters needed)* |
21 | | -4. Once you've clicked on `Deploy` it will trigger a new pipeline with the release steps. |
22 | | - |
23 | | -## Publish plugin to Grafana.com |
24 | | - |
25 | | -Since the [migration to Drone](https://github.com/grafana/grafana-image-renderer/pull/394), this step that historically |
26 | | -was needed to be performed manually is no longer required and is automatically performed by `publish_to_gcom` step. |
27 | | - |
28 | | -**Note:** The step will time out, but the plugin update process will continue in the background. |
| 13 | +Tag a new version, either in the GitHub UI or pushing it from the CLI: |
29 | 14 |
|
30 | 15 | ``` |
31 | | -<html> |
32 | | -<head><title>504 Gateway Time-out</title></head> |
33 | | -<body> |
34 | | -<center><h1>504 Gateway Time-out</h1></center> |
35 | | -<hr><center>nginx/1.17.9</center> |
36 | | -</body> |
37 | | -</html> |
| 16 | +$ git switch master |
| 17 | +$ git fetch |
| 18 | +$ git reset --hard origin/master |
| 19 | +$ git tag v0.0.0 |
| 20 | +$ git push origin v0.0.0 |
38 | 21 | ``` |
39 | 22 |
|
| 23 | +GitHub Actions takes care of _everything_ until you get to the Grafana Cloud deployment. |
| 24 | + |
40 | 25 | ## Deploy into Grafana Cloud |
| 26 | + |
41 | 27 | Create a PR in [Deployment Tools](https://github.com/grafana/deployment_tools/blob/master/ksonnet/lib/render-service/images.libsonnet) with the new version. |
0 commit comments