Skip to content

Commit 720b4b7

Browse files
authored
test shell-check with variable interpolation (#67)
* test shell-check with variable interpolation * ok
1 parent 2bfaee1 commit 720b4b7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.buildkite/pipeline.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ steps:
1111
image: koalaman/shellcheck-alpine
1212
default-secret-name: buildkite-k8s-plugin
1313
use-agent-node-affinity: true
14+
- name: shellcheck self-test
15+
agents:
16+
queue: monorepo-ci
17+
os: linux
18+
command:
19+
- echo "Running shellcheck"
20+
- shellcheck hooks/*
21+
plugins:
22+
- EmbarkStudios/k8s#${BUILDKITE_COMMIT}:
23+
image: koalaman/shellcheck-alpine
24+
default-secret-name: buildkite-k8s-plugin
25+
use-agent-node-affinity: true
1426
- wait
1527
- name: Build and publish k8s-buildkite-agent container image
1628
branches: 'master'

lib/job.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function(jobName, agentEnv={}, stepEnvFile='', patchFunc=identity) patchFunc({
9090
if std.startsWith(f, 'BUILDKITE_PLUGIN_K8S_ENVIRONMENT_')
9191
&& !std.startsWith(f, 'BUILDKITE_PLUGIN_K8S_ENVIRONMENT_FROM_SECRET')
9292
] + [
93-
{'BUILDKITE_PLUGIN_K8S_IS_JOB': 'true'},
93+
{name: 'BUILDKITE_PLUGIN_K8S_IS_JOB', value: 'true'},
9494
],
9595

9696
local secretEnv =

0 commit comments

Comments
 (0)