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
This appears to be a result of invalid Yaml, as opposed to a problem with the plugin itself. You can use an online yaml validator to verify this http://yaml-online-parser.appspot.com/
The validator gives this error:
ERROR:
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.
Forgive my stupidness - how could I create a tag? Actually I would even prefer to just tag the code and do not create a release (as it is more or less a copy deployment).
Or does it mean I have to trigger the build on tag and create that tag manually?
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.