Compare commits
8 Commits
31f2439033
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 31333ea168 | |||
| e26c79a9d7 | |||
| 200789e832 | |||
| ae1440fce3 | |||
| b58b5777fd | |||
| 3e84af9bb5 | |||
| 83dfdc2cc3 | |||
| bbdb27b116 |
16
.drone.yml
16
.drone.yml
@@ -20,20 +20,30 @@ steps:
|
|||||||
tags: [ "${DRONE_BUILD_NUMBER}", "latest" ]
|
tags: [ "${DRONE_BUILD_NUMBER}", "latest" ]
|
||||||
username: { from_secret: docker_username }
|
username: { from_secret: docker_username }
|
||||||
password: { from_secret: docker_password }
|
password: { from_secret: docker_password }
|
||||||
|
|
||||||
- name: vulnerability-scan
|
- name: vulnerability-scan
|
||||||
image: aquasec/trivy:0.50.1
|
image: aquasec/trivy:0.50.1
|
||||||
environment:
|
environment:
|
||||||
TRIVY_USERNAME: { from_secret: docker_username }
|
TRIVY_USERNAME: { from_secret: docker_username }
|
||||||
TRIVY_PASSWORD: { from_secret: docker_password }
|
TRIVY_PASSWORD: { from_secret: docker_password }
|
||||||
commands:
|
commands:
|
||||||
- trivy image --image-src remote --exit-code 1 --severity CRITICAL nexus.khongisa.co.za/webapitest:${DRONE_BUILD_NUMBER}
|
- trivy image --image-src remote --exit-code 1 --severity CRITICAL nexus.khongisa.co.za/webapitest:${DRONE_BUILD_NUMBER}
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- promote
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: deploy-to-uat
|
name: deploy-to-uat
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build-and-package
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: uat-deployment
|
- name: uat-deployment
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
@@ -55,4 +65,4 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- promote
|
- promote
|
||||||
target:
|
target:
|
||||||
- uat
|
- staging
|
||||||
Reference in New Issue
Block a user