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

* Drone: Identify Drone runner for each pipeline
This commit is contained in:
Arve Knudsen 2020-07-24 10:13:21 +02:00 committed by GitHub
parent 5e73a92327
commit 49b86e88ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -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:

View File

@ -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):