Commit 75ddb708 authored by Wen Wei Li's avatar Wen Wei Li

test volumes

parent 2c1518e9
---
kind: pipeline
type: docker
name: default
name: sec_test
steps:
- name: security scan
- name: security_scan
image: prlab/drone_plugin
volumes:
- name: cache
path: /tmp/
path: /home/reports
commands:
- echo $(python3 /plugin/main.py)
- python3 /usr/local/src/scan --src ./src -o /tmp/reports
settings:
host:
- 192.168.0.22
environment:
KEY:
from_secret: ssh_key
USERNAME:
from_secret: ssh_username
HOST:
from_secret: ssh_host
- python3 /usr/local/src/scan --src ./src -o /home/reports
steps:
- name: scp
image: appleboy/drone-scp
volumes:
- name: cache
path: /tmp/reports
path: /home/reports
settings:
host:
from_secret: ssh_host
......@@ -40,10 +28,10 @@ steps:
password:
from_secret: ssh_password
port : 22
target: ~/drone_reports
source: /tmp/reports
target: ~/Downloads/drone_reports
source: /home/reports
depends_on: security_scan
volumes:
- name: cache
host:
path: /tmp/
path: /home/reports
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