From 630ed8521facfd65014bbf741922823bdea61597 Mon Sep 17 00:00:00 2001 From: ruberoid Date: Thu, 21 Mar 2024 23:42:27 +0400 Subject: [PATCH] Added text matcher submodule nuget packaging trying to build different projects at the same time. --- .drone.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 47f382b..774c302 100644 --- a/.drone.yml +++ b/.drone.yml @@ -38,11 +38,33 @@ steps: NUGETAPIKEY: from_secret: nuget_api_key commands: - - echo $nugetapikey - dotnet pack ./local-env/telegram-listener/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj - dotnet nuget push ./local-env/telegram-listener/src/Nocr.TelegramListener.Async.Api.Contracts/bin/*/*.nupkg --api-key $NUGETAPIKEY --source https://api.nuget.org/v3/index.json --skip-duplicate +- name: nocr text matcher build & push + image: plugins/docker + privileged: true + settings: + repo: hub.musk.fun/k8s/nocr/text_matcher + registry: hub.musk.fun + context: ./local-env/text-matcher + dockerfile: ./local-env/text-matcher/src/Nocr.TextMatcher.Host/Dockerfile + tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"] + username: + from_secret: hub_username + password: + from_secret: hub_password + +- name: nocr text matcher nuget package make & push + image: mcr.microsoft.com/dotnet/sdk:8.0 + environment: + VERSION: ${DRONE_TAG} + NUGETAPIKEY: + from_secret: nuget_api_key + commands: + - dotnet pack ./local-env/text-matcher/src/*.Contracts/*.csproj -o ./local-env/bin/ + - dotnet nuget push ./local-env/bin/*.nupkg --api-key $NUGETAPIKEY --source https://api.nuget.org/v3/index.json --skip-duplicate + trigger: event: - tag -