Hi @all,
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
My yaml looks like this:
kind: pipeline
name: deployment
steps:
- name: copy_release
image: appleboy/drone-scp
settings:
host: my.pi.server
username: pi
password: xxxx
port: 22
target: /home/pi/surveillance.home
source: ./*
rm: true
- name: activate_release
image: appleboy/drone-ssh
settings:
host: my.pi.server
username: pi
password: xxxx
port: 22
command_timeout: 10m
script:
- cd ~/surveillance.home/client
- npm install -y -q --production
- cd ~/surveillance.home/server
- npm install -y -q --production
- mkdir phonebooks
- cd ~
- sudo systemctl daemon-reload
- sudo systemctl restart iSurveillance.service
- sudo systemctl restart iSurveillanceChecker.service
- name: tag_release
image: plugins/gitea-release
settings:
api_key: xxxx
base_url: http://my.gitea.server/
files: ./*
title: Release ${DRONE_COMMIT}
when:
event:
- tag
When removing the gitea_release plugin everything works fine - adding it again I receive the drone error:
yaml: line 34: did not find expected '-' indicator
Actually I have no idea why…
I am using the latest docker image:
drone/drone:latest
Any help is appreciated - thank you