Skip to content

Commit

Permalink
test shell-check with variable interpolation (#67)
Browse files Browse the repository at this point in the history
* test shell-check with variable interpolation
* ok
  • Loading branch information
tgolsson authored Feb 15, 2023
1 parent 2bfaee1 commit 720b4b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ steps:
image: koalaman/shellcheck-alpine
default-secret-name: buildkite-k8s-plugin
use-agent-node-affinity: true
- name: shellcheck self-test
agents:
queue: monorepo-ci
os: linux
command:
- echo "Running shellcheck"
- shellcheck hooks/*
plugins:
- EmbarkStudios/k8s#${BUILDKITE_COMMIT}:
image: koalaman/shellcheck-alpine
default-secret-name: buildkite-k8s-plugin
use-agent-node-affinity: true
- wait
- name: Build and publish k8s-buildkite-agent container image
branches: 'master'
Expand Down
2 changes: 1 addition & 1 deletion lib/job.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function(jobName, agentEnv={}, stepEnvFile='', patchFunc=identity) patchFunc({
if std.startsWith(f, 'BUILDKITE_PLUGIN_K8S_ENVIRONMENT_')
&& !std.startsWith(f, 'BUILDKITE_PLUGIN_K8S_ENVIRONMENT_FROM_SECRET')
] + [
{'BUILDKITE_PLUGIN_K8S_IS_JOB': 'true'},
{name: 'BUILDKITE_PLUGIN_K8S_IS_JOB', value: 'true'},
],

local secretEnv =
Expand Down

0 comments on commit 720b4b7

Please sign in to comment.