How to execute pipeline.yml?

When I paste the contents of pipeline.yml into the Steps UI, everything works perfectly, but when I update the steps UI to just contain builldkite upload pipeline.yml I get various errors suggesting that my steps need to be an array or my pipeline type is not supported

What is the correct way to do this? My goal is to have all the logic in GitHub.
I use buildkite-agent-stack-k8s

Contents of pipeline.yml:

steps:
  - label: "Run GPU test test"
    agents:
      queue: kubernetes
    plugins:
      - kubernetes:
          checkout:
            gitCredentialsSecret:
              secretName:REDACTED
          podSpec:
              - name: dshm
                emptyDir:
                  medium: Memory
                  sizeLimit: "10Gi"
            containers:
              - image: REDACTED
                envFrom:
                  - secretRef:
                      name: buildkite-env-creds
                command: 
                  - set -e
                  - |
                    apt-get update && apt-get install bash
                    echo "PWD: $(pwd) | Contents: $(ls -la)"
                    bash .buildkite/run.sh 2>&1


Hi @sshleifer,

I think the above pipeline has missing volume name on the podSpec and should be:

          volumes:
              - name: dshm
                emptyDir:
                   medium: Memory
                   sizeLimit: "10Gi"

If the above was just a type and actually exists in your pipeline, you could email us your build url at support@buildkite.com so we can have a closer look into it.

Cheers!