Compare commits

..

12 Commits

Author SHA1 Message Date
khwezi 55d241e362 Merge pull request 'Docker image cache test' (#97) from cart into main
Reviewed-on: #97
2026-06-16 10:58:55 +02:00
Khwezi Mngoma cb03b91c6c Docker image cache test
continuous-integration/drone/pr Build is passing
2026-06-16 10:58:03 +02:00
khwezi 0da92cfb5a Merge pull request 'Specified buildkit inline caching' (#96) from cart into main
Reviewed-on: #96
2026-06-16 10:45:08 +02:00
Khwezi Mngoma b0ea5ea098 Specified buildkit inline caching
continuous-integration/drone/pr Build is passing
2026-06-16 10:44:27 +02:00
khwezi 30cde40d5b Merge pull request 'Added caching to docker build stage' (#95) from cart into main
Reviewed-on: #95
2026-06-16 10:33:09 +02:00
Khwezi Mngoma 32eeb24558 Added caching to docker build stage
continuous-integration/drone/pr Build is passing
2026-06-16 10:32:25 +02:00
khwezi 5abe7a1476 Merge pull request 'ensured that untranslatable claims do not crash signalr' (#94) from cart into main
Reviewed-on: #94
2026-06-16 00:16:02 +02:00
Khwezi Mngoma bead8314da ensured that untranslatable claims do not crash signalr
continuous-integration/drone/pr Build is passing
2026-06-16 00:14:45 +02:00
khwezi ace7eeef8e Merge pull request 'Added automati revision history pruning' (#93) from cart into main
Reviewed-on: #93
2026-06-15 23:28:53 +02:00
Khwezi Mngoma 5c3ceeeb83 Added automati revision history pruning
continuous-integration/drone/pr Build is passing
2026-06-15 23:27:23 +02:00
khwezi e21fd59b12 Merge pull request 'Removed https failsafe' (#92) from cart into main
Reviewed-on: #92
2026-06-15 22:54:33 +02:00
Khwezi Mngoma fcc0b3845e Removed https failsafe
continuous-integration/drone/pr Build is passing
2026-06-15 22:53:55 +02:00
4 changed files with 11 additions and 13 deletions
+5 -1
View File
@@ -23,7 +23,7 @@ trigger:
kind: pipeline
type: docker
name: package
steps:
- name: docker-build
image: plugins/docker
@@ -31,6 +31,10 @@ steps:
registry: nexus.khongisa.co.za
repo: nexus.khongisa.co.za/midrandbooks
tags: [ latest, "1.${DRONE_BUILD_NUMBER}" ]
use_cache: true
cache_from: nexus.khongisa.co.za/midrandbooks:latest
build_args:
- BUILDKIT_INLINE_CACHE=1
custom_labels:
- org.opencontainers.image.source=https://gitea.khongisa.co.za/litecharms/midrandbooks
- org.opencontainers.image.version=1.${DRONE_BUILD_NUMBER}
+4 -4
View File
@@ -38,13 +38,13 @@ public sealed class HydrationService(AuthenticationStateProvider authStateProvid
if (existingCustomer.IsFailed)
{
var name = User!.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Name)!.Value!;
var lastname = User!.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Surname)!.Value!;
var mobile = User!.Claims.FirstOrDefault(c => c.Type == ClaimTypes.MobilePhone)!.Value!;
var name = User!.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Name)?.Value ?? string.Empty;
var lastname = User!.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Surname)?.Value ?? string.Empty;
var mobile = User!.Claims.FirstOrDefault(c => c.Type == ClaimTypes.MobilePhone)?.Value ?? string.Empty;
var customerCreate = await customerService.CreateCustomerAsync(new CreateCustomer { Email = email }, cancellationToken);
if (customerCreate.IsSuccess)
if (customerCreate.IsSuccess && !string.IsNullOrWhiteSpace(name))
{
ShoppingCart.CustomerId = customerCreate.Value;
-7
View File
@@ -27,13 +27,6 @@ app.UseHealthChecks("/health", new HealthCheckOptions
});
app.MapStaticAssets();
app.Use((context, next) =>
{
if (context.Request.Host.Value!.Contains("midrandbooks.co.za", StringComparison.OrdinalIgnoreCase))
context.Request.Scheme = "https";
return next();
});
app.UseCookiePolicy();
app.UseAuthentication();
+2 -1
View File
@@ -48,7 +48,8 @@ metadata:
name: midrandbooks
namespace: midrandbooks-uat
spec:
replicas: 1
replicas: 2
revisionHistoryLimit: 0
selector:
matchLabels:
app: midrandbooks