github.com/buildkite/agent-stack-k8s@v0.4.0/integration/fixtures/secretref.yaml (about)

     1  steps:
     2    - label: ":wave:"
     3      agents:
     4        queue: {{.queue}}
     5      artifact_paths: "CODE_OF_CONDUCT.md"
     6      env:
     7        BUILDKITE_SHELL: /bin/sh -e -c
     8      plugins:
     9        - kubernetes:
    10            gitEnvFrom: 
    11            - secretRef: {name: agent-stack-k8s}
    12            podSpec:
    13              containers:
    14                - image: alpine:latest
    15                  command: [cat]
    16                  args: [README.md]
    17                - image: buildkite/agent:latest
    18                  command: [buildkite-agent]
    19                  args: [artifact upload "README.md"]
    20                - image: buildkite/agent:latest
    21                  command: [/bin/bash]
    22                  args:
    23                  - -ec
    24                  - |
    25                    "ln -sf /workspace/.ssh ~/.ssh
    26                    if ssh -q git@github.com; [ $? -eq 255 ]; then
    27                      echo fail
    28                      exit 1
    29                    else
    30                      echo success
    31                    fi"