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

* Drone: Identify Drone runner for each pipeline
pull/26578/head
Arve Knudsen 5 years ago committed by GitHub
parent 5e73a92327
commit 49b86e88ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      .drone.yml
  2. 8
      scripts/lib.star

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

Loading…
Cancel
Save