Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drone template extension invalid with .yaml and .yml #3489

Open
joaostorrer opened this issue Mar 28, 2024 · 0 comments
Open

Drone template extension invalid with .yaml and .yml #3489

joaostorrer opened this issue Mar 28, 2024 · 0 comments

Comments

@joaostorrer
Copy link

I created a yaml file named test.yaml with this configuration:

kind: pipeline
type: docker
name: default
steps:
   - name: {{ .input.name }}
     image: {{ .input.image }}
     commands:
        - {{ .input.commands }}

But when I try to add the template with the command drone template add --namespace test --name test --data @test.yaml it raises this error:

client error 400: {"message":"Template extension invalid. Must be yaml, starlark or jsonnet"}

I tried to change the extension to .yml, execute the command without the "@", pass the full path of the file, but the error continues.

I'm using CentOS 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant