Add step labels to step containers

This adds the following labels:
- `io.drone.step.number`
- `io.drone.step.name`
We use these as labels when we send our logs to Loki

Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>
This commit is contained in:
Julien Duchesne
2022-12-01 09:00:50 -05:00
parent e57a6d22e3
commit 70e2fb0415
3 changed files with 131 additions and 11 deletions

16
engine/compiler/testdata/steps.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
kind: pipeline
type: docker
name: default
clone:
disable: true
steps:
- name: build
image: golang
commands:
- go build
- name: test
image: golang
commands:
- go test