From 49b86e88acb1c871352096d105ea78363464e17f Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Fri, 24 Jul 2020 10:13:21 +0200 Subject: [PATCH] Drone: Identify Drone runner for each pipeline (#26573) * Drone: Identify Drone runner for each pipeline --- .drone.yml | 10 ++++++++++ scripts/lib.star | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/.drone.yml b/.drone.yml index 91460b25e8a..86b10936860 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,11 @@ platform: arch: amd64 steps: +- name: identify-runner + image: alpine:3.12 + commands: + - echo $DRONE_RUNNER_NAME + - name: initialize image: grafana/build-container:1.2.21 commands: @@ -236,6 +241,11 @@ platform: arch: amd64 steps: +- name: identify-runner + image: alpine:3.12 + commands: + - echo $DRONE_RUNNER_NAME + - name: initialize image: grafana/build-container:1.2.21 commands: diff --git a/scripts/lib.star b/scripts/lib.star index 339e7bc1893..c4cad2bfea8 100644 --- a/scripts/lib.star +++ b/scripts/lib.star @@ -126,6 +126,14 @@ def pipeline(name, edition, trigger, steps, services=[]): 'disable': True, } + pipeline['steps'].insert(0, { + 'name': 'identify-runner', + 'image': alpine_image, + 'commands': [ + 'echo $DRONE_RUNNER_NAME', + ], + }) + return pipeline def init_steps(edition):