Compare commits

..

5 Commits

Author SHA1 Message Date
31333ea168 Merge pull request 'Removed pull event from build stage' (#106) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/staging Build is passing
Reviewed-on: #106
2026-04-04 16:39:53 +02:00
e26c79a9d7 Removed pull event from build stage 2026-04-04 16:39:31 +02:00
200789e832 Merge pull request 'test' (#105) from test into main
Reviewed-on: #105
2026-04-04 16:38:53 +02:00
ae1440fce3 Refactored uat to staging 2026-04-04 16:38:30 +02:00
b58b5777fd Refactored triggers 2026-04-04 16:38:02 +02:00

View File

@@ -1,7 +1,7 @@
---
kind: pipeline
type: docker
name: build-test-publish-deploy
name: build-and-package
steps:
- name: build-test-publish
@@ -20,15 +20,31 @@ steps:
tags: [ "${DRONE_BUILD_NUMBER}", "latest" ]
username: { from_secret: docker_username }
password: { from_secret: docker_password }
- name: vulnerability-scan
image: aquasec/trivy:0.50.1
environment:
TRIVY_USERNAME: { from_secret: docker_username }
TRIVY_PASSWORD: { from_secret: docker_password }
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
type: docker
name: deploy-to-uat
depends_on:
- build-and-package
steps:
- name: uat-deployment
image: appleboy/drone-ssh
settings:
@@ -44,3 +60,9 @@ steps:
environment:
DOCKER_USERNAME: { from_secret: docker_username }
DOCKER_PASSWORD: { from_secret: docker_password }
trigger:
event:
- promote
target:
- staging