mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Drone: Identify Drone runner for each pipeline (#26573)
* Drone: Identify Drone runner for each pipeline
This commit is contained in:
parent
5e73a92327
commit
49b86e88ac
10
.drone.yml
10
.drone.yml
@ -8,6 +8,11 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: identify-runner
|
||||||
|
image: alpine:3.12
|
||||||
|
commands:
|
||||||
|
- echo $DRONE_RUNNER_NAME
|
||||||
|
|
||||||
- name: initialize
|
- name: initialize
|
||||||
image: grafana/build-container:1.2.21
|
image: grafana/build-container:1.2.21
|
||||||
commands:
|
commands:
|
||||||
@ -236,6 +241,11 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: identify-runner
|
||||||
|
image: alpine:3.12
|
||||||
|
commands:
|
||||||
|
- echo $DRONE_RUNNER_NAME
|
||||||
|
|
||||||
- name: initialize
|
- name: initialize
|
||||||
image: grafana/build-container:1.2.21
|
image: grafana/build-container:1.2.21
|
||||||
commands:
|
commands:
|
||||||
|
@ -126,6 +126,14 @@ def pipeline(name, edition, trigger, steps, services=[]):
|
|||||||
'disable': True,
|
'disable': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pipeline['steps'].insert(0, {
|
||||||
|
'name': 'identify-runner',
|
||||||
|
'image': alpine_image,
|
||||||
|
'commands': [
|
||||||
|
'echo $DRONE_RUNNER_NAME',
|
||||||
|
],
|
||||||
|
})
|
||||||
|
|
||||||
return pipeline
|
return pipeline
|
||||||
|
|
||||||
def init_steps(edition):
|
def init_steps(edition):
|
||||||
|
Loading…
Reference in New Issue
Block a user