Module
- Drone
Environment
- Infrastructure: Drone CLI
- OS: Mac, Windows or Linux
Issue
I was setting up a Drone pipeline and got an error: yaml:missing kind attribute
.This is my .drone.yml file.
kind: pipeline
type: kubernetes
name: monorepo
clone:
depth: 1
steps:
- name: Build1
image: gradle:jdk8
environment:
TOKEN:
from_secret: TEST_TOKEN
---
kind: secret
name: TEST_TOKEN
get:
path: secrets/TEST_TOKEN
name: TEST_TOKEN
---
Resolution
Remove ‘- - -’ from the last line of the yaml file. ‘- - -’ is a delimiter between the stages, so the drone expects to find another stage after that line.