Compare commits

...

22 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
3e84af9bb5 Merge pull request 'test' (#104) from test into main
Some checks failed
continuous-integration/drone Build was killed
Reviewed-on: #104
2026-04-04 16:36:26 +02:00
83dfdc2cc3 Removed promotion trigger 2026-04-04 16:35:19 +02:00
bbdb27b116 Removed promotion trigger 2026-04-04 16:34:41 +02:00
31f2439033 Merge pull request 'Removed build stage dependency' (#103) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/uat Build is passing
Reviewed-on: #103
2026-04-04 16:30:09 +02:00
1da1328870 Removed build stage dependency 2026-04-04 16:29:17 +02:00
15a2ad0b89 Merge pull request 'Removed triggers on build stage' (#102) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/uat Build was killed
Reviewed-on: #102
2026-04-04 16:25:35 +02:00
3b5ca4f5b0 Removed triggers on build stage 2026-04-04 16:25:09 +02:00
d179d2d79d Merge pull request 'Light refactor' (#101) from test into main
Reviewed-on: #101
2026-04-04 16:24:35 +02:00
1526648d9a Light refactor 2026-04-04 16:24:12 +02:00
b6813057a4 Merge pull request 'Added pull_request trigger in build stage' (#100) from test into main
Reviewed-on: #100
2026-04-04 16:23:22 +02:00
d1f723c135 Added pull_request trigger in build stage 2026-04-04 16:22:59 +02:00
7882b380b5 Merge pull request 'Removed push trigger from build branch' (#99) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #99
2026-04-04 16:20:05 +02:00
423281d071 Removed push trigger from build branch 2026-04-04 16:19:44 +02:00
75ecf71370 Merge pull request 'Enhanced triggers' (#98) from test into main
Reviewed-on: #98
2026-04-04 16:18:08 +02:00
44fbc613a3 Enhanced triggers 2026-04-04 16:17:40 +02:00
5fa7d49bcd Merge pull request 'Fixed pipeline stage naming' (#97) from test into main
Reviewed-on: #97
2026-04-04 16:13:32 +02:00
a922531f50 Fixed pipeline stage naming 2026-04-04 16:13:03 +02:00

View File

@@ -1,9 +1,7 @@
---
kind: pipeline
type: docker
name: cicd-pipeline
clone:
depth: 1
name: build-and-package
steps:
- name: build-test-publish
@@ -14,48 +12,35 @@ steps:
- dotnet test --configuration Release --no-build
- dotnet publish --configuration Release --no-build
- name: docker-build
- name: docker-build-and-push
image: plugins/docker
settings:
registry: nexus.khongisa.co.za
repo: nexus.khongisa.co.za/webapitest
tags: [ "${DRONE_BUILD_NUMBER}", "latest" ]
username:
from_secret: docker_username
password:
from_secret: docker_password
dry_run: true
- name: docker-push
image: plugins/docker
settings:
registry: nexus.khongisa.co.za
repo: nexus.khongisa.co.za/webapitest
tags: [ "${DRONE_BUILD_NUMBER}", "latest" ]
username:
from_secret: docker_username
password:
from_secret: docker_password
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
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}
- trivy image --image-src remote --exit-code 1 --severity CRITICAL nexus.khongisa.co.za/webapitest:${DRONE_BUILD_NUMBER}
trigger:
branch:
- main
event:
- push
exclude:
- promote
---
kind: pipeline
type: docker
name: deploy-to-uat
# This stage only starts after 'build-and-package' finishes successfully
depends_on:
- build-and-package
@@ -78,6 +63,6 @@ steps:
trigger:
event:
- promote
- promote
target:
- uat
- staging