I am fairly new to Drone and using it to deploy a Nodejs application onto a raspberry inside local network. I use appleboy’s scp and ssh plugins to push the code onto the rasberry and restart the services.
Next step is to include release tagging onto the local gitea server. But every time I include that setp I am getting parser errors and I can’t figure out why
while parsing a block collection
in "<unicode string>", line 5, column 4:
- name: copy_release
expected <block end>, but found '<block sequence start>'
in "<unicode string>", line 35, column 5:
- name: tag_release
Examples from YAM
Based on my quick analysis it looks like your spacing is slightly off … the first two steps are indented 3 spaces, and the third step is indented 4 spaces. Uniform spacing is required. Once you resolve the spacing issues the Yaml should parse successfully.
I think this is expected, assuming Gitea behaves the same way as GitHub (I do not use Gitea or this plugin). In GitHub a release can only be created for a tag. If Drone is not building a tag, the GitHub release plugin ignores the current build and exits.
you would tag your code with git and push (below). Gitea will send a webhook to Drone when you push the tag and will trigger a pipeline execution. The Gitea release plugin would then be used to upload official release binaries to Gitea for your tag, for example.