17 Commits

Author SHA1 Message Date
khwezi fcd8c2ede7 Merge pull request 'Updated to use new shop database' (#13) from migration into master
Reviewed-on: #13
2026-05-10 11:22:46 +02:00
khwezi 8f48e11738 Updated to use new shop database
continuous-integration/drone/pr Build is passing
2026-05-10 11:22:19 +02:00
khwezi 9ae11b9b03 Merge pull request 'Populated README' (#12) from migration into master
Reviewed-on: #12
2026-05-10 09:48:50 +02:00
khwezi a44dcdb8f8 Populated README
continuous-integration/drone/pr Build is passing
2026-05-10 09:48:02 +02:00
khwezi 56f967c6e4 Merge pull request 'Fixed image and tag naming' (#11) from migration into master
Reviewed-on: #11
2026-05-10 09:09:01 +02:00
khwezi bb42713fb2 Fixed image and tag naming
continuous-integration/drone/pr Build is passing
2026-05-10 09:08:27 +02:00
khwezi 58312d489b Merge pull request 'migration' (#10) from migration into master
Reviewed-on: #10
2026-05-10 09:04:22 +02:00
khwezi 3beebe16d3 Removed explicit image specification
continuous-integration/drone/pr Build was killed
2026-05-10 09:03:32 +02:00
khwezi 6757eb342e Added release tagging to deployment, increased replica count to 2 2026-05-10 09:02:57 +02:00
khwezi 5ace2129e1 Merge pull request 'migration' (#9) from migration into master
Reviewed-on: #9
2026-05-10 08:26:43 +02:00
khwezi e0a98bee0b Added image pull polict to manifest
continuous-integration/drone/pr Build is failing
2026-05-10 08:26:19 +02:00
khwezi c6f64b78aa Updated nuget packages 2026-05-10 08:25:23 +02:00
khwezi 967130e724 Fixed pipeline deployment restart name 2026-05-09 18:49:16 +02:00
khwezi 2bf2d79739 Merge pull request 'Migrated aspire key' (#8) from migration into master
Reviewed-on: #8
2026-05-09 18:01:08 +02:00
khwezi 6cee984d7b Migrated aspire key
continuous-integration/drone/pr Build is passing
2026-05-09 18:00:35 +02:00
khwezi 664bbd858b Merge pull request 'Removed webhook setting' (#7) from migration into master
Reviewed-on: #7
2026-05-09 17:50:30 +02:00
khwezi 2b826189e0 Removed webhook setting
continuous-integration/drone/pr Build is passing
2026-05-09 17:49:54 +02:00
5 changed files with 52 additions and 23 deletions
+20 -5
View File
@@ -31,20 +31,37 @@ steps:
registry: nexus.khongisa.co.za
repo: nexus.khongisa.co.za/litecharms-shop
tags: [ latest, "1.${DRONE_BUILD_NUMBER}" ]
custom_labels:
- org.opencontainers.image.source=https://gitea.khongisa.co.za/litecharms/litecharms-shop
- org.opencontainers.image.version=1.${DRONE_BUILD_NUMBER}
- org.opencontainers.image.revision=${DRONE_COMMIT_SHA}
username: { from_secret: docker_username }
password: { from_secret: docker_password }
- name: gitea-tag
- name: gitea-tag-release
image: alpine/git
environment:
GITEA_TOKEN: { from_secret: git_token }
GITEA_USER: { from_secret: git_username }
GITEA_PASS: { from_secret: git_password }
commands:
- git config --global user.email "drone@litecharms.co.za"
- git config --global user.name "Drone CI"
- echo "169.255.58.144 gitea.khongisa.co.za" >> /etc/hosts
- apk add --no-cache curl
- git remote set-url origin https://$${GITEA_USER}:$${GITEA_PASS}@gitea.khongisa.co.za/litecharms/litecharmsshop.git
- git tag 1.${DRONE_BUILD_NUMBER}
- git push origin 1.${DRONE_BUILD_NUMBER}
- |
curl -X POST "https://gitea.khongisa.co.za/api/v1/repos/litecharms/litecharmsshop/releases" \
-H "Authorization: token $${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"1.${DRONE_BUILD_NUMBER}\",
\"target_commitish\": \"${DRONE_COMMIT_SHA}\",
\"name\": \"Release 1.${DRONE_BUILD_NUMBER}\",
\"body\": \"### Artifacts\n* **Docker Image:** nexus.khongisa.co.za/litecharms-shop:1.${DRONE_BUILD_NUMBER}\n* **NuGet:** [View on Nexus](https://nexus.khongisa.co.za/repository/nuget-group/)\",
\"draft\": false,
\"prerelease\": false
}"
depends_on:
- build
@@ -66,7 +83,6 @@ steps:
- mkdir -p $HOME/.kube
- echo "$KUBE_CONFIG" > $HOME/.kube/config
- kubectl apply -f litecharms-shop-uat.yml
- kubectl rollout restart deployment/litecharms-shop -n litecharms-shop-uat
depends_on:
- package
@@ -88,7 +104,6 @@ steps:
- mkdir -p $HOME/.kube
- echo "$KUBE_CONFIG" > $HOME/.kube/config
- kubectl apply -f litecharms-shop.yml
- kubectl rollout restart shop/deployment/litecharms-shop -n litecharms-shop
depends_on:
- uat
+19
View File
@@ -0,0 +1,19 @@
# LiteCharmsShop
The primary customer-facing web application for the LiteCharms platform.
## 🏗 Architecture
* **Type:** Kubernetes Deployment
* **Scale:** Horizontal scaling enabled via `replicas`.
* **Ingress:** Managed via `IngressRouter` for external traffic routing.
## 🚀 CI/CD Workflow
* **Trigger:** Pull Request to `master`.
* **Build:** Compiles .NET 10.0 source.
* **Containerize:** Docker image pushed to Nexus as `litecharms-scheduler:1.${DRONE_BUILD_NUMBER}`.
* **Deploy:** * Updates UAT via `kubectl apply`.
* Production deployment is triggered via **Promotion** to the `production` target.
## 🌐 Endpoints
* **UAT:** `https://uat-shop.khongisa.co.za` (Internal/VPN)
* **Monitoring:** Aspire Dashboard enabled via `Monitoring__Address`.
+3 -5
View File
@@ -14,12 +14,10 @@ builder.Services.AddBlazoredToast();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddMediator();
builder.Services.AddEmailServiceBus();
builder.Services.AddSalesServiceBus();
builder.Services.AddGeneralServiceBus();
builder.Services.AddEmailServices(builder.Configuration);
builder.Services.AddLeadGeneratorDatabase(builder.Configuration);
builder.Services.AddQuartzSchedulerClient(LeadGeneratorSchedulerName, LeadGeneratorSchedulerInstanceId, builder.Configuration);
builder.Services.AddShopDatabase(builder.Configuration);
builder.Services.AddQuartzSchedulerClient(ShopSchedulerName, builder.Configuration);
builder.Services.AddPostgresHealtchCheck();
builder.Services.AddQuartzHealtchCheck();
@@ -28,7 +26,7 @@ builder.Services.AddHealthChecksSupport(builder.Configuration);
var app = builder.Build();
var schedulerFactory = app.Services.GetRequiredService<ISchedulerFactory>();
var scheduler = await schedulerFactory.GetScheduler(LeadGeneratorSchedulerName);
var scheduler = await schedulerFactory.GetScheduler(ShopSchedulerName);
if (!scheduler!.IsStarted)
await scheduler.Start();
+3 -3
View File
@@ -17,9 +17,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="LiteCharms.Extensions" Version="1.11.0" />
<PackageReference Include="LiteCharms.Features" Version="1.11.0" />
<PackageReference Include="LiteCharms.Models" Version="1.11.0" />
<PackageReference Include="LiteCharms.Extensions" Version="1.18.0" />
<PackageReference Include="LiteCharms.Features" Version="1.18.0" />
<PackageReference Include="LiteCharms.Models" Version="1.18.0" />
<PackageReference Include="Polly" Version="8.6.6" />
</ItemGroup>
+7 -10
View File
@@ -22,8 +22,9 @@ metadata:
namespace: litecharms-shop-uat
type: Opaque
data:
connection-string: SG9zdD0xOTIuMTY4LjEuMTcwO0RhdGFiYXNlPWxlYWRnZW5lcmF0b3ItZGV2O1VzZXJuYW1lPWxlYWRnZW5lcmF0b3I7UGFzc3dvcmQ9S2VLNDRsczRQWHBuYms7UGVyc2lzdCBTZWN1cml0eSBJbmZvPVRydWU=
quartz-store: SG9zdD0xOTIuMTY4LjEuMTcwO0RhdGFiYXNlPXNjaGVkdWxlci1kZXY7VXNlcm5hbWU9c2NoZWR1bGVyLWRldi11c2VyO1Bhc3N3b3JkPWtWVm1vV0tKM3h6Z1FYO1BlcnNpc3QgU2VjdXJpdHkgSW5mbz1UcnVl
connection-string: SG9zdD0xOTIuMTY4LjEuMTcwO0RhdGFiYXNlPXNob3AtZGV2O1VzZXJuYW1lPXNob3AtZGV2LXVzZXI7UGFzc3dvcmQ9a1ZWbW9XS0ozeHpnUVg7UGVyc2lzdCBTZWN1cml0eSBJbmZvPVRydWU=
connection-string-quartz: SG9zdD0xOTIuMTY4LjEuMTcwO0RhdGFiYXNlPXNjaGVkdWxlci1kZXY7VXNlcm5hbWU9c2NoZWR1bGVyLWRldi11c2VyO1Bhc3N3b3JkPWtWVm1vV0tKM3h6Z1FYO1BlcnNpc3QgU2VjdXJpdHkgSW5mbz1UcnVl
aspire-apikey: bWMzRzYzSzJqNVpPRXNpMEFqTW9qTFRYbTFLRVpGY3R6SUlqU3dEaVRHdXQ4cUdTa1B1V3d4R1AxUmJzY0pVbw==
---
apiVersion: v1
kind: PersistentVolumeClaim
@@ -43,7 +44,7 @@ metadata:
name: litecharms-shop
namespace: litecharms-shop-uat
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: shop
@@ -62,6 +63,7 @@ spec:
containers:
- name: shop
image: nexus.khongisa.co.za/litecharms-shop:latest
imagePullPolicy: Always
resources:
limits:
memory: "512Mi"
@@ -79,17 +81,12 @@ spec:
valueFrom:
secretKeyRef:
name: shop-secrets
key: quartz-store
key: connection-string-quartz
- name: ConnectionStrings__PostgresShop
valueFrom:
secretKeyRef:
name: shop-secrets
key: connection-string
- name: ConnectionStrings__DiscordShop
valueFrom:
secretKeyRef:
name: shop-secrets
key: discord-webhook
key: connection-string
- name: Monitoring__Address
valueFrom:
configMapKeyRef: