Update .drone.yml

This commit is contained in:
nazarovsa 2024-03-22 07:32:51 +00:00
parent b76a269bbc
commit f986c88840

View File

@ -1,73 +1,73 @@
--- ---
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
settings: settings:
tags: true tags: true
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: ${DRONE_TAG} VERSION: ${DRONE_TAG}
NUGETAPIKEY: NUGETAPIKEY:
from_secret: nuget_musk_api_key from_secret: nuget_musk_api_key
commands: commands:
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/ruberoid/nuget/index.json - dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
- dotnet pack ./local-env/telegram-listener/Nocr.TelegramListener.sln -o ./local-env/telegram-listener/bin - dotnet pack ./local-env/telegram-listener/Nocr.TelegramListener.sln -o ./local-env/telegram-listener/bin
- dotnet nuget push ./local-env/telegram-listener/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate - dotnet nuget push ./local-env/telegram-listener/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
- name: nocr text matcher build & push - name: nocr text matcher build & push
image: plugins/docker image: plugins/docker
privileged: true privileged: true
settings: settings:
repo: hub.musk.fun/k8s/nocr/text_matcher repo: hub.musk.fun/k8s/nocr/text_matcher
registry: hub.musk.fun registry: hub.musk.fun
context: ./local-env/text-matcher context: ./local-env/text-matcher
dockerfile: ./local-env/text-matcher/src/Nocr.TextMatcher.Host/Dockerfile dockerfile: ./local-env/text-matcher/src/Nocr.TextMatcher.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 text matcher nuget package make & push - name: nocr text matcher nuget package make & push
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
environment: environment:
VERSION: ${DRONE_TAG} VERSION: ${DRONE_TAG}
NUGETAPIKEY: NUGETAPIKEY:
from_secret: nuget_musk_api_key from_secret: nuget_musk_api_key
commands: commands:
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/ruberoid/nuget/index.json - dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
- dotnet pack ./local-env/text-matcher/Nocr.TextMatcher.sln -o ./local-env/text-matcher/bin - dotnet pack ./local-env/text-matcher/Nocr.TextMatcher.sln -o ./local-env/text-matcher/bin
- dotnet nuget push ./local-env/text-matcher/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate - dotnet nuget push ./local-env/text-matcher/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
trigger: trigger:
event: event:
- tag - tag