test #105

Merged
khwezi merged 2 commits from test into main 2026-04-04 16:38:54 +02:00
Showing only changes of commit b58b5777fd - Show all commits

View File

@@ -1,7 +1,7 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: build-test-publish-deploy name: build-and-package
steps: steps:
- name: build-test-publish - name: build-test-publish
@@ -20,15 +20,33 @@ 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:
include:
- push
exclude:
- promote
---
kind: pipeline
type: docker
name: deploy-to-uat
depends_on:
- build-and-package
steps:
- name: uat-deployment - name: uat-deployment
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
@@ -44,3 +62,9 @@ steps:
environment: environment:
DOCKER_USERNAME: { from_secret: docker_username } DOCKER_USERNAME: { from_secret: docker_username }
DOCKER_PASSWORD: { from_secret: docker_password } DOCKER_PASSWORD: { from_secret: docker_password }
trigger:
event:
- promote
target:
- uat