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 ...@@ -7,13 +7,22 @@ name: default
steps: steps:
- name: show env - name: show env
image: prlab/drone_plugin image: prlab/drone_plugin
commands: commands:
- echo $(ls)
- echo $(pwd)
- echo $(python3 /plugin/main.py) - 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: settings:
host: host:
- 192.168.0.22 - 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 # image: ghcr.io/appleboy/drone-ssh
#settings: #settings:
# host: # 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