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

test volumes

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