Commit 652bb00e authored by Wen Wei Li's avatar Wen Wei Li

complete whole CI/CD process

parent 082c7c6c
Pipeline #4839 failed with stage
...@@ -26,7 +26,9 @@ steps: ...@@ -26,7 +26,9 @@ steps:
commands: commands:
- python3 /usr/local/src/scan --type python,yaml,dockerfile,kubernetes --src ./ -o /home/reports - python3 /usr/local/src/scan --type python,yaml,dockerfile,kubernetes --src ./ -o /home/reports
depends_on: ["build-and-publish-imamge"]
# sonarqube scan
- name: code-analysis - name: code-analysis
image: prlab/drone-sonar image: prlab/drone-sonar
settings: settings:
...@@ -34,11 +36,15 @@ steps: ...@@ -34,11 +36,15 @@ steps:
from_secret: sonar_host from_secret: sonar_host
SONAR_TOKEN: SONAR_TOKEN:
from_secret: sonar_token from_secret: sonar_token
depends_on: ["build-and-publish-imamge"]
# dependency check for python
- name: dependency-check-py - name: dependency-check-py
image: prlab/dependency-check-py image: prlab/dependency-check-py
volumes: volumes:
- name: cache - name: cache
path: /home/reports path: /home/reports
depends_on: ["build-and-publish-imamge"]
- name: scp - name: scp
image: appleboy/drone-scp image: appleboy/drone-scp
......
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