Update .drone.yml
Fix ci for nuget.
This commit is contained in:
parent
1d785d9059
commit
a1ccc6aaf0
84
.drone.yml
84
.drone.yml
@ -1,42 +1,42 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: Nocr
|
name: Nocr
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- name: clone
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
- pwd
|
||||||
- git clone https://gitea.musk.fun/nocr/local-env
|
- git clone https://gitea.musk.fun/nocr/local-env
|
||||||
- cd local-env
|
- cd local-env
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: nocr telegram listener build & push
|
- name: nocr telegram listener build & push
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
repo: hub.musk.fun/k8s/nocr/telegram_listener
|
repo: hub.musk.fun/k8s/nocr/telegram_listener
|
||||||
registry: hub.musk.fun
|
registry: hub.musk.fun
|
||||||
context: ./local-env/telegram-listener
|
context: ./local-env/telegram-listener
|
||||||
dockerfile: ./local-env/telegram-listener/src/Nocr.TelegramListener.Host/Dockerfile
|
dockerfile: ./local-env/telegram-listener/src/Nocr.TelegramListener.Host/Dockerfile
|
||||||
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
|
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
|
||||||
username:
|
username:
|
||||||
from_secret: hub_username
|
from_secret: hub_username
|
||||||
password:
|
password:
|
||||||
from_secret: hub_password
|
from_secret: hub_password
|
||||||
|
|
||||||
- name: nocr telegram listener nuget package make & push
|
- name: nocr telegram listener nuget package make & push
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
environment:
|
environment:
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
settings:
|
settings:
|
||||||
nugetapikey:
|
nugetapikey:
|
||||||
from_secret: nuget_api_key
|
from_secret: nuget_api_key
|
||||||
commands:
|
commands:
|
||||||
- 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 bin/*/*.nupkg --api-key $NUGETAPIKEY --source https://api.nuget.org/v3/index.json
|
- 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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user