Commit 8b38968a authored by Wen Wei Li's avatar Wen Wei Li

testing scp

parent 4a12a445
Pipeline #4712 failed with stage
......@@ -7,13 +7,22 @@ name: default
steps:
- name: show env
image: prlab/drone_plugin
commands:
- echo $(ls)
- echo $(pwd)
commands:
- echo $(python3 /plugin/main.py)
- python3 /usr/local/src/scan --src $(pwd) --out-dir /drone/reports
- echo $ssh_key > ./key
- chmod 600 ./key
- scp -i ./key -r /drone/reports $USERNAME@HOST:~/drone_reports/
settings:
host:
- 192.168.0.22
environment:
KEY:
from_secret: ssh_key
USERNAME:
from_secret: ssh_username
HOST:
from_secret: ssh_host
# image: ghcr.io/appleboy/drone-ssh
#settings:
# host:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment