Compare commits

...

151 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
f356ecdcc0 Merge pull request 'Split deployment from main pipeline' (#96) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #96
2026-04-04 16:11:55 +02:00
9acebb67fe Split deployment from main pipeline 2026-04-04 16:11:17 +02:00
7d32a83af2 Merge pull request 'test' (#95) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #95
2026-04-04 15:59:25 +02:00
e140319a05 Removed comments 2026-04-04 15:58:58 +02:00
3752da6ebe fixed dotnet step image 2026-04-04 15:58:12 +02:00
a4766c3d48 Merge pull request 'Restored drone image detection' (#94) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #94
2026-04-04 15:57:17 +02:00
1937d2eaa1 Restored drone image detection 2026-04-04 15:56:51 +02:00
14c2205a8d Merge pull request 'removed tags' (#93) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #93
2026-04-04 15:54:52 +02:00
c2a8b5c797 removed tags 2026-04-04 15:54:19 +02:00
e5b37e9e60 Merge pull request 'Applied nexus to all docker references including docker image' (#92) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #92
2026-04-04 15:52:22 +02:00
c584d39270 Applied nexus to all docker references including docker image 2026-04-04 15:51:52 +02:00
bdf1c92ab5 Merge pull request 'test' (#91) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #91
2026-04-04 15:42:19 +02:00
81e93b0e4e Refactored nexus trivy manifest 2026-04-04 15:41:54 +02:00
89f619eefa Pointing to the right .net10 image on nexus 2026-04-04 15:40:55 +02:00
2acbf51413 Merge pull request 'test' (#90) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #90
2026-04-04 15:33:27 +02:00
b46848dd56 Refactored the pipeline to pull the trivy image from nexus as well 2026-04-04 15:33:03 +02:00
30e0bc2b87 Pulling .net docker image from nexus 2026-04-04 15:32:20 +02:00
903c17e7f8 Refactored the pipeline so that docker push happens before the trivy scan 2026-04-04 15:30:56 +02:00
52f10f9181 Merge pull request 'Fixed docker steps to use local nexus properly' (#89) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #89
2026-04-04 15:24:33 +02:00
bd3cba05cb Fixed docker steps to use local nexus properly 2026-04-04 15:24:06 +02:00
521fa1dbc5 Merge pull request 'Supplied full package source for nuget' (#88) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #88
2026-04-04 15:13:21 +02:00
007f606bb6 Supplied full package source for nuget 2026-04-04 15:12:55 +02:00
21d2a7981e Merge pull request 'test' (#87) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #87
2026-04-04 15:10:50 +02:00
ef6262282d Applied specific trivy version 2026-04-04 15:10:28 +02:00
502182a370 Using nexus for dotnet restore 2026-04-04 15:09:05 +02:00
1d4009cc68 Merge pull request 'Added publish step to dotnet' (#86) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #86
2026-04-04 15:07:07 +02:00
c6799a146a Added publish step to dotnet 2026-04-04 15:06:32 +02:00
21e4c3940a Merge pull request 'Ensured donet publish and release are not ignored' (#85) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #85
2026-04-04 15:02:35 +02:00
6bd60452f2 Ensured donet publish and release are not ignored 2026-04-04 15:02:08 +02:00
0c901d32d8 Merge pull request 'Upgraded packages and refactored the pipeline' (#84) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #84
2026-04-04 14:54:49 +02:00
52e24bb8f2 Upgraded packages and refactored the pipeline 2026-04-04 14:53:33 +02:00
38cbf5b656 Merge pull request 'Removed dolive stage' (#83) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #83
2026-03-14 11:50:24 +02:00
a8ad599af2 Removed dolive stage 2026-03-14 11:50:02 +02:00
1263ad8571 Merge pull request 'SImplified prod docker step' (#82) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #82
2026-03-14 11:41:53 +02:00
5dff86c4fa SImplified prod docker step 2026-03-14 11:41:25 +02:00
8d12af4e10 Merge pull request 'Refactored prod step' (#81) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is passing
Reviewed-on: #81
2026-03-14 11:34:09 +02:00
6a29032748 Refactored prod step 2026-03-14 11:33:43 +02:00
099bc0c515 Merge pull request 'Unified docker commands' (#80) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is passing
Reviewed-on: #80
2026-03-14 11:24:14 +02:00
634ad82d2c Unified docker commands 2026-03-14 11:23:44 +02:00
1cb1481ab8 Merge pull request 'Using temporary folder' (#79) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #79
2026-03-14 11:19:19 +02:00
59c08d2314 Using temporary folder 2026-03-14 11:18:50 +02:00
f6bcbb6674 Merge pull request 'Fixed docker config path error' (#78) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #78
2026-03-14 11:13:51 +02:00
496e6b653d Fixed docker config path error 2026-03-14 11:13:10 +02:00
6f395f9db7 Merge pull request 'fixed temp directory naming' (#77) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #77
2026-03-14 11:07:21 +02:00
4c86a810da fixed temp directory naming 2026-03-14 11:07:00 +02:00
080d09fca3 Merge pull request 'Fixed yaml syntax error' (#76) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #76
2026-03-14 11:01:34 +02:00
1ee31554ce Fixed yaml syntax error 2026-03-14 11:01:07 +02:00
18bc75b687 Merge pull request 'switched to powershell commands on prod step' (#75) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #75
2026-03-14 11:00:31 +02:00
3d1e3f29df switched to powershell commands on prod step 2026-03-14 11:00:11 +02:00
dd5ad891ab Merge pull request 'fixed yaml syntax error' (#74) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is passing
Reviewed-on: #74
2026-03-14 10:54:38 +02:00
c03dc29446 fixed yaml syntax error 2026-03-14 10:54:16 +02:00
247aa96d19 Merge pull request 'Refactored to fix yaml syntax error' (#73) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #73
2026-03-14 10:53:12 +02:00
24e439558f Refactored to fix yaml syntax error 2026-03-14 10:52:19 +02:00
de0820dcc2 Merge pull request 'Added measures to ignore docker credential store' (#72) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #72
2026-03-14 10:50:26 +02:00
1917a60867 Added measures to ignore docker credential store 2026-03-14 10:50:01 +02:00
7071441d12 Merge pull request 'Added silent removal of existing containers' (#71) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #71
2026-03-14 10:44:15 +02:00
c43ce20bbe Added silent removal of existing containers 2026-03-14 10:43:50 +02:00
48b884ae72 Merge pull request 'Fixed docker commands on prod step' (#70) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #70
2026-03-14 10:38:26 +02:00
26c90e1697 Fixed docker commands on prod step 2026-03-14 10:38:05 +02:00
1e66974684 Merge pull request 'test' (#69) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #69
2026-03-14 10:32:48 +02:00
a6a32817c5 Retrieving host from secrets 2026-03-14 10:32:23 +02:00
03574c720f Refactored container names 2026-03-14 10:31:41 +02:00
b3fa0e5138 Merge pull request 'test' (#68) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #68
2026-03-14 10:25:50 +02:00
900e72779f Merge pull request 'Refactored prod stage' (#67) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #67
2026-03-14 10:13:50 +02:00
28d02037f8 Merge pull request 'Credential refactor' (#66) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #66
2026-03-10 19:29:17 +02:00
5e00dd6726 Merge pull request 'Refactored prod stage' (#65) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #65
2026-03-10 19:23:59 +02:00
5ee124790f Merge pull request 'Refactored prod step to target the correct docker folder for user' (#64) from test into main
Reviewed-on: #64
2026-03-10 19:20:09 +02:00
8b23dfa534 Merge pull request 'Refactored prod step' (#63) from test into main
Some checks failed
continuous-integration/drone Build was killed
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #63
2026-03-10 19:17:58 +02:00
42361d94a8 Merge pull request 'Refactored golive stage to use prod secrets' (#62) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #62
2026-03-10 19:03:02 +02:00
5cc239854e Merge pull request 'test' (#61) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing
Reviewed-on: #61
2026-03-10 18:40:05 +02:00
3ce3d88fae Merge pull request 'Fixed pipeline to support .net 10' (#60) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is passing
Reviewed-on: #60
2026-03-08 14:47:26 +02:00
71dd02a122 Merge pull request 'Fixed SDK dockerfile reference' (#59) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #59
2026-03-08 14:45:38 +02:00
45c3c77bb3 Merge pull request 'test' (#58) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #58
2026-03-08 14:42:52 +02:00
0ea4a0829d Merge pull request 'Light refactor' (#57) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #57
2026-03-08 14:26:14 +02:00
467a385c2a Merge pull request 'Added container vulnerability scan' (#56) from test into main
Some checks failed
continuous-integration/drone Build was killed
Reviewed-on: #56
2026-03-08 14:24:41 +02:00
06a910e894 Merge pull request 'Refactored pipeline to exlude the UAT stage from promotion events' (#55) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is passing
Reviewed-on: #55
2026-03-08 13:50:16 +02:00
2372a8a24a Merge pull request 'test' (#54) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is passing
Reviewed-on: #54
2026-03-08 13:45:29 +02:00
4eb185aece Merge pull request 'test' (#53) from test into main
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is passing
Reviewed-on: #53
2026-03-08 13:33:08 +02:00
64ac839d3c Merge pull request 'Put back checkout tep on package stage' (#52) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #52
2026-03-08 13:21:17 +02:00
c81a4451d6 Merge pull request 'Moved back the package step to package stage' (#51) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #51
2026-03-08 13:18:31 +02:00
9116076bac Merge pull request 'Specified environment arguments in deploy stage' (#50) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #50
2026-03-08 13:13:37 +02:00
1a8e9abb3e Merge pull request 'MOved donet package step to build stage' (#49) from test into main
Reviewed-on: #49
2026-03-08 13:10:16 +02:00
09558ce984 Merge pull request 'Refactored docker file' (#48) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #48
2026-03-08 13:05:52 +02:00
a20c90039b Merge pull request 'Currected docker port' (#47) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #47
2026-03-08 12:58:52 +02:00
da229bf4ec Merge pull request 'Allowing for UAT deployment to happen automatically' (#46) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #46
2026-03-08 12:52:28 +02:00
6bc8e5e703 Merge pull request 'Refactored pipeline to manage triggers better for promotion events' (#45) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #45
2026-03-08 12:48:40 +02:00
8fce29f5ab Merge pull request 'Added staging behavior to the pipeline' (#44) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/uat Build is failing
Reviewed-on: #44
2026-03-08 12:39:19 +02:00
79a3d87668 Merge pull request 'Refactored pipeline to separate build and test, package and deploy promostion stages' (#43) from test into main
Some checks failed
continuous-integration/drone Build was killed
Reviewed-on: #43
2026-03-08 12:34:57 +02:00
833bfafa7f Merge pull request 'Brought back auto clone disable' (#42) from test into main
All checks were successful
continuous-integration/drone Build is passing
Reviewed-on: #42
2026-03-08 12:16:21 +02:00
2477602874 Merge pull request 'Refactored step names' (#41) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #41
2026-03-08 12:15:07 +02:00
8afd460a3c Merge pull request 'test' (#40) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #40
2026-03-08 12:12:24 +02:00
10d9186f92 Merge pull request 'Refactored kaniko to use another config file path' (#39) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #39
2026-03-08 12:04:29 +02:00
41538c6376 Merge pull request 'Using CI/CD version of kaniko docker image' (#38) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #38
2026-03-08 12:01:19 +02:00
94ad00974d Merge pull request 'test' (#37) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #37
2026-03-08 11:58:01 +02:00
45171382f0 Merge pull request 'ENabled priviledged mode on docker push step' (#36) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: #36
2026-03-08 11:43:19 +02:00
eb4884eab5 Merge pull request 'Using manual docker push' (#35) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #35
2026-03-08 11:39:46 +02:00
2b3bd2897c Merge pull request 'test' (#34) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #34
2026-03-08 11:34:50 +02:00
1831c79554 Merge pull request 'Removed debug flag from docker push, removed drone build number tag' (#33) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #33
2026-03-08 11:22:24 +02:00
909b9e742a Merge pull request 'Using raw username' (#32) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #32
2026-03-08 11:15:49 +02:00
bec8ce3e74 Merge pull request 'Added debug flag' (#31) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #31
2026-03-08 11:05:36 +02:00
6ee84199b2 Merge pull request 'Added tagging' (#30) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #30
2026-03-08 10:57:34 +02:00
895bce48d2 Merge pull request 'Disabled broken automatic clone, added manual clone' (#29) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: #29
2026-03-08 10:49:44 +02:00
087358efc6 Merge pull request 'Light refactor' (#28) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/28
2026-03-08 08:52:45 +02:00
d828595384 Merge pull request 'test' (#27) from test into main
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/27
2026-03-08 08:41:23 +02:00
8cff952b17 Merge pull request 'Reverted to registry proxy' (#26) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/26
2026-03-07 17:59:15 +02:00
1af6ceb288 Merge pull request 'talking to registry directly' (#25) from test into main
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/25
2026-03-07 17:58:42 +02:00
d801f96fb9 Merge pull request 'Not ignoring bin folder' (#24) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/24
2026-03-07 17:13:36 +02:00
1cc3750fa3 Merge pull request 'Allowing .net 8 publish files' (#23) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/23
2026-03-07 17:09:14 +02:00
e38dff6e92 Merge pull request 'Added dockerignore rule to allow all publish folders' (#22) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/22
2026-03-07 17:06:06 +02:00
c4b125a580 Merge pull request 'Rfactored dockerfile to reuse pipeline publish output' (#21) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/21
2026-03-07 17:01:37 +02:00
c9de909eb6 Merge pull request 'Refactored the source context in the package step' (#20) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/20
2026-03-07 16:55:39 +02:00
7eb870a29c Merge pull request 'Removed credentials from package operation' (#19) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/19
2026-03-07 16:50:21 +02:00
83c7844880 Merge pull request 'test' (#18) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/18
2026-03-07 16:44:12 +02:00
69b92e9323 Merge pull request 'Changed to gitea-token' (#17) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/17
2026-03-07 11:35:25 +02:00
fcfd265c46 Merge pull request 'Flattened pipeline stages' (#16) from test into main
Some checks failed
continuous-integration/drone Build is failing
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/16
2026-03-07 11:23:56 +02:00
bc3a44d5ea Merge pull request 'Changed pipeline type from kubernetes to docker' (#15) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/15
2026-03-07 11:19:11 +02:00
cded235985 Merge pull request 'test' (#14) from test into main
Some checks failed
continuous-integration/drone Build encountered an error
Reviewed-on: $scheme://$host/MngomaLab/webapitest/pulls/14
2026-03-07 11:14:59 +02:00
f15143349e Merge pull request 'Refactored docker-compose.yml to expose ports and specify environment' (#13) from test into main
Some checks failed
continuous-integration/drone Build was killed
Reviewed-on: #13
2026-03-03 17:46:35 +02:00
7d8f15104c Merge pull request 'Refactored dockerfile stage 2 ports exposure' (#12) from test into main
Reviewed-on: #12
2026-03-03 17:43:34 +02:00
e2b5f2db8c Merge pull request 'Exposed ports on dockerfile' (#11) from test into main
Reviewed-on: #11
2026-03-03 17:41:06 +02:00
57ba629d2d Merge pull request 'Refactored dockerfile' (#10) from test into main
Reviewed-on: #10
2026-03-03 17:34:50 +02:00
d30ee959ee Merge pull request 'Refactored docker file' (#9) from test into main
Reviewed-on: #9
2026-03-03 17:27:19 +02:00
4e653fd91d Merge pull request 'Refactored docker file' (#8) from test into main
Reviewed-on: #8
2026-03-03 15:06:12 +02:00
b4ee875ac8 Merge pull request 'Added debug lines' (#7) from test into main
Reviewed-on: #7
2026-03-03 14:57:27 +02:00
7d395e2295 Merge pull request 'Refactored paths' (#6) from test into main
Reviewed-on: #6
2026-03-03 14:56:07 +02:00
ddc66efc16 Merge pull request 'test' (#5) from test into main
Reviewed-on: #5
2026-03-03 14:54:08 +02:00
82348a0112 Merge pull request 'Refactored dockerfile' (#4) from test into main
Reviewed-on: #4
2026-03-03 14:50:40 +02:00
e495be1c0b Merge pull request 'Fixed docker image typo' (#3) from test into main
Reviewed-on: #3
2026-03-03 14:44:38 +02:00
5a530210c0 Merge pull request 'Refactored docker file image to SDK' (#2) from test into main
Reviewed-on: #2
2026-03-03 13:38:04 +02:00
4 changed files with 53 additions and 124 deletions

View File

@@ -27,4 +27,6 @@ README.md
!.git/config
!.git/packed-refs
!.git/refs/heads/**
# Ensure the build output is NOT ignored
!**/bin/Release/**/publish/
!**/publish/

View File

@@ -1,142 +1,68 @@
---
kind: pipeline
type: docker
name: build
trigger:
event:
exclude:
- promote
clone:
disable: true
name: build-and-package
steps:
- name: checkout
image: alpine/git
- name: build-test-publish
image: nexus.khongisa.co.za/sdk:10.0
commands:
- git clone https://gitea.khongisa.co.za/MngomaLab/webapitest.git .
- git checkout ${DRONE_COMMIT}
- dotnet restore --source https://nexus.khongisa.co.za/repository/nuget-group/index.json --no-cache
- dotnet build --configuration Release --no-restore
- dotnet test --configuration Release --no-build
- dotnet publish --configuration Release --no-build
- name: dotnet build
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
- dotnet build --configuration Release
- 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 }
- name: dotnet test
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
- dotnet test --configuration Release
---
x-docker-auth: &docker-auth
DOCKER_AUTH_CONFIG: |
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "a2h3ZXppOlBHM0FRM0VPMFg="
}
}
}
kind: pipeline
type: docker
name: package
depends_on:
- build
trigger:
event:
exclude:
- promote
clone:
disable: true
steps:
- name: checkout
image: alpine/git
commands:
- git clone https://gitea.khongisa.co.za/MngomaLab/webapitest.git .
- git checkout ${DRONE_COMMIT}
- name: dotnet publish
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
- dotnet publish --configuration Release
- name: build and push
image: gcr.io/kaniko-project/executor:debug
- name: vulnerability-scan
image: aquasec/trivy:0.50.1
environment:
<<: *docker-auth
TRIVY_USERNAME: { from_secret: docker_username }
TRIVY_PASSWORD: { from_secret: docker_password }
commands:
- mkdir -p /kaniko/.docker
- echo "$DOCKER_AUTH_CONFIG" > /kaniko/.docker/config.json
- /kaniko/executor
--verbosity=debug
--context=.
--dockerfile=Dockerfile
--destination=index.docker.io/khwezi/webapitest:latest
--destination=index.docker.io/khwezi/webapitest:${DRONE_BUILD_NUMBER}
- trivy image --image-src remote --exit-code 1 --severity CRITICAL nexus.khongisa.co.za/webapitest:${DRONE_BUILD_NUMBER}
- name: volnerability scan
image: aquasec/trivy
commands:
- trivy image --exit-code 1 --timeout 15m --severity CRITICAL khwezi/webapitest:${DRONE_BUILD_NUMBER}
---
kind: pipeline
type: docker
name: deploy
depends_on:
- package
trigger:
branch:
- main
event:
exclude:
- promote
clone:
disable: true
---
kind: pipeline
type: docker
name: deploy-to-uat
depends_on:
- build-and-package
steps:
- name: uat
- name: uat-deployment
image: appleboy/drone-ssh
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_user
password:
from_secret: ssh_password
host: { from_secret: ssh_host }
username: { from_secret: ssh_user }
password: { from_secret: ssh_password }
script:
- docker pull khwezi/webapitest:latest
- docker stop webapitest || true
- docker rm webapitest || true
- docker run -d --name webapitest --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Development -p 4000:8081 khwezi/webapitest:latest
---
kind: pipeline
type: docker
name: golive
depends_on:
- deploy
clone:
disable: true
steps:
- name: prod
image: appleboy/drone-ssh
- echo $DOCKER_PASSWORD | docker login nexus.khongisa.co.za -u $DOCKER_USERNAME --password-stdin
- docker pull nexus.khongisa.co.za/webapitest:latest
- docker stop webapi 2>/dev/null || true
- docker rm webapi 2>/dev/null || true
- docker run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Development -p 4000:8081 nexus.khongisa.co.za/webapitest:latest
environment:
PLUGIN_USER:
from_secret: ssh_prod_user
PLUGIN_PASSWORD:
from_secret: ssh_prod_password
PLUGIN_HOST: ssh_prod_host
settings:
script:
- docker stop webapi || true
- docker rm webapi || true
- docker run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Production -p 4001:8081 khwezi/webapitest:latest
when:
DOCKER_USERNAME: { from_secret: docker_username }
DOCKER_PASSWORD: { from_secret: docker_password }
trigger:
event:
- promote
target:
- prod
- staging

View File

@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
FROM nexus.khongisa.co.za/aspnet:10.0 AS final
WORKDIR /app
USER app

View File

@@ -9,8 +9,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.23.0" />
<PackageReference Include="Polly" Version="8.6.6" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.1.7" />
</ItemGroup>
</Project>