Commit 49b86e88 by Arve Knudsen Committed by GitHub

Drone: Identify Drone runner for each pipeline (#26573)

* Drone: Identify Drone runner for each pipeline
parent 5e73a923
......@@ -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:
......
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment