new fix drone ci added.
This commit is contained in:
parent
4d5793b748
commit
1d785d9059
42
.drone.yml
Normal file
42
.drone.yml
Normal file
@ -0,0 +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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user