test #90
22
.drone.yml
22
.drone.yml
@@ -31,17 +31,6 @@ steps:
|
|||||||
dry_run: true
|
dry_run: true
|
||||||
# Set to false once you verify the scan passes, or see the step below
|
# Set to false once you verify the scan passes, or see the step below
|
||||||
|
|
||||||
- name: vulnerability-scan
|
|
||||||
image: aquasec/trivy:0.50.1
|
|
||||||
environment:
|
|
||||||
# Trivy needs these to pull the image from your Nexus to scan it
|
|
||||||
TRIVY_USERNAME:
|
|
||||||
from_secret: docker_username
|
|
||||||
TRIVY_PASSWORD:
|
|
||||||
from_secret: docker_password
|
|
||||||
commands:
|
|
||||||
- trivy image --exit-code 1 --severity CRITICAL nexus.khongisa.co.za/webapitest:${DRONE_BUILD_NUMBER}
|
|
||||||
|
|
||||||
- name: docker-push
|
- name: docker-push
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
@@ -53,6 +42,17 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
|
|
||||||
|
- name: vulnerability-scan
|
||||||
|
image: aquasec/trivy:0.50.1
|
||||||
|
environment:
|
||||||
|
# Trivy needs these to pull the image from your Nexus to scan it
|
||||||
|
TRIVY_USERNAME:
|
||||||
|
from_secret: docker_username
|
||||||
|
TRIVY_PASSWORD:
|
||||||
|
from_secret: docker_password
|
||||||
|
commands:
|
||||||
|
- trivy image --exit-code 1 --severity CRITICAL nexus.khongisa.co.za/webapitest:${DRONE_BUILD_NUMBER}
|
||||||
|
|
||||||
# --- DEPLOY STAGE ---
|
# --- DEPLOY STAGE ---
|
||||||
- name: deploy-uat
|
- name: deploy-uat
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user