Compare commits
6
Commits
49d999c1e3
..
1.16.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1acbc4d213 | ||
|
|
193496bbf9 | ||
|
|
8c99668fac | ||
|
|
a015801423 | ||
|
|
ad44f46204 | ||
|
|
9d64b5e76d |
+28
-4
@@ -13,8 +13,7 @@ steps:
|
|||||||
- name: pack-and-publish
|
- name: pack-and-publish
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||||
environment:
|
environment:
|
||||||
NEXUS_KEY:
|
NEXUS_KEY: { from_secret: nexus_api_key }
|
||||||
from_secret: nexus_api_key
|
|
||||||
NEXUS_URL: https://nexus.khongisa.co.za/repository/nuget-hosted/
|
NEXUS_URL: https://nexus.khongisa.co.za/repository/nuget-hosted/
|
||||||
VERSION: 1.${DRONE_BUILD_NUMBER}.0
|
VERSION: 1.${DRONE_BUILD_NUMBER}.0
|
||||||
commands:
|
commands:
|
||||||
@@ -42,6 +41,31 @@ steps:
|
|||||||
- dotnet pack LiteCharms.Entities/LiteCharms.Entities.csproj -c Release -p:PackageVersion=$VERSION -o dist/
|
- dotnet pack LiteCharms.Entities/LiteCharms.Entities.csproj -c Release -p:PackageVersion=$VERSION -o dist/
|
||||||
- dotnet nuget push dist/LiteCharms.Entities.$VERSION.nupkg --api-key $NEXUS_KEY --source $NEXUS_URL
|
- dotnet nuget push dist/LiteCharms.Entities.$VERSION.nupkg --api-key $NEXUS_KEY --source $NEXUS_URL
|
||||||
|
|
||||||
|
- 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 }
|
||||||
|
VERSION: 1.${DRONE_BUILD_NUMBER}.0
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache curl
|
||||||
|
- git remote set-url origin https://$${GITEA_USER}:$${GITEA_PASS}@gitea.khongisa.co.za/litecharms/components.git
|
||||||
|
- git tag $VERSION
|
||||||
|
- git push origin $VERSION
|
||||||
|
- |
|
||||||
|
curl -X POST "https://gitea.khongisa.co.za/api/v1/repos/litecharms/components/releases" \
|
||||||
|
-H "Authorization: token $${GITEA_TOKEN}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-d "{
|
||||||
|
\"tag_name\": \"$VERSION\",
|
||||||
|
\"target_commitish\": \"${DRONE_COMMIT_SHA}\",
|
||||||
|
\"name\": \"Library Suite $VERSION\",
|
||||||
|
\"body\": \"### Published NuGet Packages\nAll packages versioned as **$VERSION**:\n* LiteCharms.Abstractions\n* LiteCharms.Models\n* LiteCharms.Infrastructure\n* LiteCharms.Features\n* LiteCharms.Extensions\n* LiteCharms.Entities\n\n[View in Nexus](https://nexus.khongisa.co.za/repository/nuget-group/)\",
|
||||||
|
\"draft\": false,
|
||||||
|
\"prerelease\": false
|
||||||
|
}"
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
event:
|
||||||
- master
|
- pull_request
|
||||||
@@ -5,7 +5,6 @@ public static class Constants
|
|||||||
public const int QueueBounds = 100000;
|
public const int QueueBounds = 100000;
|
||||||
|
|
||||||
public const string ShopSchedulerName = "shop";
|
public const string ShopSchedulerName = "shop";
|
||||||
public const string ShopSchedulerInstanceId = "golden-dawn";
|
|
||||||
|
|
||||||
public const string EmailServiceBus = nameof(EmailServiceBus);
|
public const string EmailServiceBus = nameof(EmailServiceBus);
|
||||||
public const string GeneralServiceBus = nameof(GeneralServiceBus);
|
public const string GeneralServiceBus = nameof(GeneralServiceBus);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ public static class Quartz
|
|||||||
{
|
{
|
||||||
private const string databaseConfigName = "PostgresScheduler";
|
private const string databaseConfigName = "PostgresScheduler";
|
||||||
|
|
||||||
public static IServiceCollection AddQuartzSchedulerClient(this IServiceCollection services, string schedulerName, string schedulerId, IConfiguration configuration)
|
public static IServiceCollection AddQuartzSchedulerClient(this IServiceCollection services, string schedulerName, IConfiguration configuration)
|
||||||
{
|
{
|
||||||
var connectionString = configuration.GetConnectionString(databaseConfigName);
|
var connectionString = configuration.GetConnectionString(databaseConfigName);
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ public static class Quartz
|
|||||||
services.AddQuartz(config =>
|
services.AddQuartz(config =>
|
||||||
{
|
{
|
||||||
config.SchedulerName = schedulerName;
|
config.SchedulerName = schedulerName;
|
||||||
config.SchedulerId = schedulerId;
|
config.SchedulerId = "AUTO";
|
||||||
|
|
||||||
config.UseSimpleTypeLoader();
|
config.UseSimpleTypeLoader();
|
||||||
config.UseDefaultThreadPool(options => options.MaxConcurrency = 0);
|
config.UseDefaultThreadPool(options => options.MaxConcurrency = 0);
|
||||||
@@ -42,7 +42,7 @@ public static class Quartz
|
|||||||
return services;
|
return services;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IServiceCollection AddQuartzScheduler(this IServiceCollection services, string schedulerName, string schedulerId, IConfiguration configuration)
|
public static IServiceCollection AddQuartzScheduler(this IServiceCollection services, string schedulerName, IConfiguration configuration)
|
||||||
{
|
{
|
||||||
var connectionString = configuration.GetConnectionString(databaseConfigName);
|
var connectionString = configuration.GetConnectionString(databaseConfigName);
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ public static class Quartz
|
|||||||
services.AddQuartz(config =>
|
services.AddQuartz(config =>
|
||||||
{
|
{
|
||||||
config.SchedulerName = schedulerName;
|
config.SchedulerName = schedulerName;
|
||||||
config.SchedulerId = schedulerId;
|
config.SchedulerId = "AUTO";
|
||||||
config.InterruptJobsOnShutdown = true;
|
config.InterruptJobsOnShutdown = true;
|
||||||
config.InterruptJobsOnShutdownWithWait = true;
|
config.InterruptJobsOnShutdownWithWait = true;
|
||||||
config.MaxBatchSize = 5;
|
config.MaxBatchSize = 5;
|
||||||
|
|||||||
Reference in New Issue
Block a user