hello,
I used Gitlab and drone.
I just started using the Drone.
I ran into two problems.
-
when I push, the drone cannot work. but the tag and merge request events works,
Why is it happen? and how should I let push work? -
when I trigger tag or merge request events.
SCP-stage step show :
Error: can't connect without a private SSH key or password
but when I create a New Build manual, its works.
Thank you very much.
.drone.yml
kind: pipeline
name: default
steps:
- name: stage
image: php:7.3
commands:
- php -v
- php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
- php composer-setup.php --install-dir=/usr/local/bin --filename=composer
- chmod +x /usr/local/bin/composer
- composer -V
- rm -rf .git .drone.yml README.md composer-setup.php
- ls -al
when:
branch:
- develop
- master
- name: scp-stage
image: appleboy/drone-scp
settings:
host: 127.0.0.1
user: root
port: 22
password:
from_secret: stage_125_password
target: /home/www/ci-demo
source:
- ./*
when:
branch:
- develop
- name: scp-live
image: appleboy/drone-scp
settings:
host: 127.0.0.1
user: root
port: 22
password:
from_secret: stage_125_password
target: /home/www/ci-demo-live
source:
- ./*
when:
branch:
- master
gitlab hooks: