Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

drone cli can not execute

Tags:

drone.io

cicd

I can't use the drone cli, it just told me:

Stage '' not found in build file : resource not found

What the problem is?

And it also told me:

proto: duplicate proto type registered: PluginSpec
proto: duplicate proto type registered: PluginPrivilege

When I used drone command

Is this a problem?

Here is my .drone.yml

kind: pipeline
type: exec
name: test

steps:
  - name: echo
    commands:
      - echo "hello world"
like image 814
GoldenMagicDoge Avatar asked Oct 24 '25 20:10

GoldenMagicDoge


1 Answers

I think you miss the --pipeline test option.

Also if you use another Docker daemon, you have to set the DOCKER_HOST before you run drone local execution.

For colima:

export DOCKER_HOST="unix://${HOME}/.colima/default/docker.sock"
drone exec --trusted --pipeline test
like image 197
Raymond Avatar answered Oct 28 '25 03:10

Raymond



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!