Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 30cde40d5b | |||
| 32eeb24558 | |||
| 5abe7a1476 | |||
| bead8314da | |||
| ace7eeef8e | |||
| 5c3ceeeb83 |
@@ -31,6 +31,8 @@ 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
|
||||
custom_labels:
|
||||
- org.opencontainers.image.source=https://gitea.khongisa.co.za/litecharms/midrandbooks
|
||||
- org.opencontainers.image.version=1.${DRONE_BUILD_NUMBER}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -48,7 +48,8 @@ metadata:
|
||||
name: midrandbooks
|
||||
namespace: midrandbooks-uat
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
revisionHistoryLimit: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
app: midrandbooks
|
||||
|
||||
Reference in New Issue
Block a user