Added text matcher submodule nuget packaging trying to build different projects at the same time.
This commit is contained in:
parent
a882ddb4fb
commit
630ed8521f
26
.drone.yml
26
.drone.yml
@ -38,11 +38,33 @@ steps:
|
|||||||
NUGETAPIKEY:
|
NUGETAPIKEY:
|
||||||
from_secret: nuget_api_key
|
from_secret: nuget_api_key
|
||||||
commands:
|
commands:
|
||||||
- echo $nugetapikey
|
|
||||||
- dotnet pack ./local-env/telegram-listener/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj
|
- 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
|
- 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:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user