Skip to content

Commit

Permalink
Add step to identify windows Drone runner (#3832)
Browse files Browse the repository at this point in the history
I'm migrating our agents to GCP, I want to make sure it's working
  • Loading branch information
julienduchesne authored Jun 10, 2021
1 parent 7e658e8 commit 69e38a3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,22 @@ local promtail_win() = pipeline('promtail-windows') {
arch: 'amd64',
version: '1809',
},
steps: [{
name: 'test',
image: 'golang:windowsservercore-1809',
commands: [
'go test .\\clients\\pkg\\promtail\\targets\\windows\\... -v',
],
}],
steps: [
{
name: 'identify-runner',
image: 'golang:windowsservercore-1809',
commands: [
'Write-Output $env:DRONE_RUNNER_NAME',
],
},
{
name: 'test',
image: 'golang:windowsservercore-1809',
commands: [
'go test .\\clients\\pkg\\promtail\\targets\\windows\\... -v',
],
},
],
};

local fluentbit() = pipeline('fluent-bit-amd64') + arch_image('amd64', 'latest,main') {
Expand Down
5 changes: 5 additions & 0 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,11 @@ platform:
version: 1809

steps:
- name: identify-runner
image: golang:windowsservercore-1809
commands:
- Write-Output $env:DRONE_RUNNER_NAME

- name: test
image: golang:windowsservercore-1809
commands:
Expand Down

0 comments on commit 69e38a3

Please sign in to comment.