Compare commits

...

1 Commits

Author SHA1 Message Date
ruberoid
9a4fdca4f7 added second cicd block.
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-16 17:11:42 +04:00
4 changed files with 93 additions and 4 deletions

View File

@ -93,4 +93,93 @@ steps:
- echo "✅ Tests completed"
depends_on:
- dotnet-build
- docker
- docker
---
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# 📝 Pipeline 2: Main Branch Validation
# Trigger: Push to main branch
# Purpose: Validate main branch after merge
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
kind: pipeline
type: kubernetes
name: main-validation
metadata:
namespace: musk-drone
trigger:
ref:
- refs/heads/main
event:
- push
clone:
disable: true
services:
- name: docker
image: docker:27-dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
- name: nuget-cache
temp: {}
steps:
- name: clone
image: alpine/git
commands:
- git clone https://gitea.musk.fun/nocr/flea
- cd flea
- git checkout $DRONE_COMMIT
- git submodule update --init --recursive
- name: dotnet-restore
image: mcr.microsoft.com/dotnet/sdk:8.0
volumes:
- name: nuget-cache
path: /root/.nuget/packages
commands:
- cd flea
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
- dotnet restore telegram-listener/Nocr.TelegramListener.sln
- dotnet restore telegram-client/Nocr.TelegramClient.sln
- dotnet restore text-matcher/Nocr.TextMatcher.sln
- dotnet restore users/Nocr.Users.sln
depends_on:
- clone
- name: dotnet-build
image: mcr.microsoft.com/dotnet/sdk:8.0
volumes:
- name: nuget-cache
path: /root/.nuget/packages
commands:
- cd flea
- dotnet build telegram-listener/Nocr.TelegramListener.sln --no-restore -c Release
- dotnet build telegram-client/Nocr.TelegramClient.sln --no-restore -c Release
- dotnet build text-matcher/Nocr.TextMatcher.sln --no-restore -c Release
- dotnet build users/Nocr.Users.sln --no-restore -c Release
depends_on:
- dotnet-restore
- name: dotnet-test
image: mcr.microsoft.com/dotnet/sdk:8.0
volumes:
- name: nuget-cache
path: /root/.nuget/packages
- name: dockersock
path: /var/run
environment:
DOCKER_HOST: unix:///var/run/docker.sock
commands:
- cd flea
- dotnet test text-matcher/Nocr.TextMatcher.sln --no-build -c Release --logger trx --results-directory ./test-results
depends_on:
- dotnet-build
- docker

@ -1 +1 @@
Subproject commit ccd1c31f1d99afdc028fdc8ba8676de742f43926
Subproject commit b754ae1c5b50feb757237c2036e0e25432cdd1e3

@ -1 +1 @@
Subproject commit 3802eb9dd6a428041c02c947034942973faa0560
Subproject commit 7030e7bce2004ea342ceedf9eb5126077e267b72

@ -1 +1 @@
Subproject commit f3df86c90ae3bc62ab55aac694b37c5a751b7c68
Subproject commit e0b6beab7e6ccdf3d89b56d07abef3b619cbfa32