Update .drone.yml
This commit is contained in:
parent
17e96163a9
commit
6cd56139a0
128
.drone.yml
128
.drone.yml
@ -66,6 +66,134 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- clone
|
- clone
|
||||||
|
|
||||||
|
- name: kaniko nocr users build & push
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
registry: hub.musk.fun
|
||||||
|
repo: hub.musk.fun/k8s/nocr/text_matcher
|
||||||
|
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
|
||||||
|
context: ./flea/users
|
||||||
|
dockerfile: ./flea/users/src/Nocr.Users.Host/Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: hub_username
|
||||||
|
password:
|
||||||
|
from_secret: hub_password
|
||||||
|
build_args:
|
||||||
|
- --cache=true --cache-dir=/cache
|
||||||
|
volumes:
|
||||||
|
- name: local-cache
|
||||||
|
path: /cache
|
||||||
|
depends_on:
|
||||||
|
- clone
|
||||||
|
|
||||||
|
- name: kaniko nocr telegram client build & push
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
registry: hub.musk.fun
|
||||||
|
repo: hub.musk.fun/k8s/nocr/telegram_client
|
||||||
|
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
|
||||||
|
context: ./flea/telegram-client
|
||||||
|
dockerfile: ./flea/telegram-client/src/Nocr.TelegramClient.Host/Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: hub_username
|
||||||
|
password:
|
||||||
|
from_secret: hub_password
|
||||||
|
build_args:
|
||||||
|
- --cache=true --cache-dir=/cache
|
||||||
|
volumes:
|
||||||
|
- name: local-cache
|
||||||
|
path: /cache
|
||||||
|
depends_on:
|
||||||
|
- clone
|
||||||
|
|
||||||
|
- name: kaniko nocr text matcher migrator build & push
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
registry: hub.musk.fun
|
||||||
|
repo: hub.musk.fun/k8s/nocr/text_matcher_migrator
|
||||||
|
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
|
||||||
|
context: ./flea/text-matcher/
|
||||||
|
dockerfile: ./flea/text-matcher/src/Nocr.TextMatcher.Migrator/Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: hub_username
|
||||||
|
password:
|
||||||
|
from_secret: hub_password
|
||||||
|
build_args:
|
||||||
|
- --cache=true --cache-dir=/cache
|
||||||
|
volumes:
|
||||||
|
- name: local-cache
|
||||||
|
path: /cache
|
||||||
|
depends_on:
|
||||||
|
- clone
|
||||||
|
|
||||||
|
- name: kaniko nocr users migrator build & push
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
registry: hub.musk.fun
|
||||||
|
repo: hub.musk.fun/k8s/nocr/users_migrator
|
||||||
|
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
|
||||||
|
context: ./flea/users/
|
||||||
|
dockerfile: ./flea/users/src/Nocr.Users.Migrator/Dockerfile
|
||||||
|
username:
|
||||||
|
from_secret: hub_username
|
||||||
|
password:
|
||||||
|
from_secret: hub_password
|
||||||
|
build_args:
|
||||||
|
- --cache=true --cache-dir=/cache
|
||||||
|
volumes:
|
||||||
|
- name: local-cache
|
||||||
|
path: /cache
|
||||||
|
depends_on:
|
||||||
|
- clone
|
||||||
|
|
||||||
|
- name: nocr telegram listener nuget package make & push
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
volumes:
|
||||||
|
- name: local-cache
|
||||||
|
path: /app/
|
||||||
|
environment:
|
||||||
|
VERSION: ${DRONE_TAG}
|
||||||
|
NUGETAPIKEY:
|
||||||
|
from_secret: nuget_musk_api_key
|
||||||
|
commands:
|
||||||
|
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
|
||||||
|
- dotnet pack ./flea/telegram-listener/Nocr.TelegramListener.sln -o ./flea/telegram-listener/bin
|
||||||
|
- dotnet nuget push ./flea/telegram-listener/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
|
||||||
|
depends_on:
|
||||||
|
- kaniko nocr telegram listener build & push
|
||||||
|
|
||||||
|
- name: nocr text matcher nuget package make & push
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
volumes:
|
||||||
|
- name: local-cache
|
||||||
|
path: /app/
|
||||||
|
environment:
|
||||||
|
VERSION: ${DRONE_TAG}
|
||||||
|
NUGETAPIKEY:
|
||||||
|
from_secret: nuget_musk_api_key
|
||||||
|
commands:
|
||||||
|
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
|
||||||
|
- dotnet pack ./flea/text-matcher/Nocr.TextMatcher.sln -o ./flea/text-matcher/bin
|
||||||
|
- dotnet nuget push ./flea/text-matcher/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
|
||||||
|
depends_on:
|
||||||
|
- kaniko nocr text matcher migrator build & push
|
||||||
|
|
||||||
|
- name: nocr users nuget package make & push
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
volumes:
|
||||||
|
- name: local-cache
|
||||||
|
path: /app/
|
||||||
|
environment:
|
||||||
|
VERSION: ${DRONE_TAG}
|
||||||
|
NUGETAPIKEY:
|
||||||
|
from_secret: nuget_musk_api_key
|
||||||
|
commands:
|
||||||
|
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
|
||||||
|
- dotnet pack ./flea/users/Nocr.Users.sln -o ./flea/users/bin
|
||||||
|
- dotnet nuget push ./flea/users/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
|
||||||
|
depends_on:
|
||||||
|
- kaniko nocr users migrator build & push
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: nfs-cache
|
- name: nfs-cache
|
||||||
claim:
|
claim:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user