Update .drone.yml

Fix ci for nuget.
This commit is contained in:
ruberoid 2024-03-21 18:54:15 +00:00
parent 1d785d9059
commit a1ccc6aaf0

View File

@ -1,42 +1,42 @@
---
kind: pipeline
type: kubernetes
name: Nocr
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
- pwd
- git clone https://gitea.musk.fun/nocr/local-env
- cd local-env
- git submodule update --init --recursive
- name: nocr telegram listener build & push
image: plugins/docker
privileged: true
settings:
repo: hub.musk.fun/k8s/nocr/telegram_listener
registry: hub.musk.fun
context: ./local-env/telegram-listener
dockerfile: ./local-env/telegram-listener/src/Nocr.TelegramListener.Host/Dockerfile
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
username:
from_secret: hub_username
password:
from_secret: hub_password
- name: nocr telegram listener nuget package make & push
image: mcr.microsoft.com/dotnet/sdk:8.0
environment:
Version: 0.1.0
settings:
nugetapikey:
from_secret: nuget_api_key
commands:
- dotnet pack ./local-env/telegram-listener/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj
- dotnet nuget push bin/*/*.nupkg --api-key $NUGETAPIKEY --source https://api.nuget.org/v3/index.json
---
kind: pipeline
type: kubernetes
name: Nocr
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
- pwd
- git clone https://gitea.musk.fun/nocr/local-env
- cd local-env
- git submodule update --init --recursive
- name: nocr telegram listener build & push
image: plugins/docker
privileged: true
settings:
repo: hub.musk.fun/k8s/nocr/telegram_listener
registry: hub.musk.fun
context: ./local-env/telegram-listener
dockerfile: ./local-env/telegram-listener/src/Nocr.TelegramListener.Host/Dockerfile
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
username:
from_secret: hub_username
password:
from_secret: hub_password
- name: nocr telegram listener nuget package make & push
image: mcr.microsoft.com/dotnet/sdk:8.0
environment:
Version: 0.1.0
settings:
nugetapikey:
from_secret: nuget_api_key
commands:
- 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