return to drone/docker #00.
This commit is contained in:
parent
405e0aec57
commit
b56bf27460
109
.drone.yml
109
.drone.yml
@ -30,29 +30,23 @@ steps:
|
|||||||
- cd flea
|
- cd flea
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: kaniko nocr telegram listener build & push
|
- name: docker nocr telegram listener build & push
|
||||||
image: plugins/kaniko
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: hub.musk.fun
|
registry: hub.musk.fun
|
||||||
repo: hub.musk.fun/k8s/nocr/telegram_listener
|
repo: hub.musk.fun/k8s/nocr/telegram_listener
|
||||||
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
|
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"]
|
||||||
context: ./flea/telegram-listener
|
context: ./flea/telegram-listener
|
||||||
dockerfile: ./flea/telegram-listener/src/Nocr.TelegramListener.Host/Dockerfile
|
dockerfile: ./flea/telegram-listener/src/Nocr.TelegramListener.Host/Dockerfile
|
||||||
cache: true
|
|
||||||
username:
|
username:
|
||||||
from_secret: hub_username
|
from_secret: hub_username
|
||||||
password:
|
password:
|
||||||
from_secret: hub_password
|
from_secret: hub_password
|
||||||
# build_args:
|
depends_on:
|
||||||
# - --cache=true --cache-dir=/cache
|
- clone
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /cache
|
|
||||||
# depends_on:
|
|
||||||
# - clone
|
|
||||||
|
|
||||||
- name: kaniko nocr text matcher build & push
|
- name: docker nocr text matcher build & push
|
||||||
image: plugins/kaniko
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: hub.musk.fun
|
registry: hub.musk.fun
|
||||||
repo: hub.musk.fun/k8s/nocr/text_matcher
|
repo: hub.musk.fun/k8s/nocr/text_matcher
|
||||||
@ -63,16 +57,11 @@ steps:
|
|||||||
from_secret: hub_username
|
from_secret: hub_username
|
||||||
password:
|
password:
|
||||||
from_secret: hub_password
|
from_secret: hub_password
|
||||||
build_args:
|
depends_on:
|
||||||
- --cache=true --cache-dir=/cache
|
- clone
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /cache
|
|
||||||
# depends_on:
|
|
||||||
# - clone
|
|
||||||
|
|
||||||
- name: kaniko nocr users build & push
|
- name: docker nocr users build & push
|
||||||
image: plugins/kaniko
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: hub.musk.fun
|
registry: hub.musk.fun
|
||||||
repo: hub.musk.fun/k8s/nocr/users
|
repo: hub.musk.fun/k8s/nocr/users
|
||||||
@ -83,16 +72,11 @@ steps:
|
|||||||
from_secret: hub_username
|
from_secret: hub_username
|
||||||
password:
|
password:
|
||||||
from_secret: hub_password
|
from_secret: hub_password
|
||||||
build_args:
|
depends_on:
|
||||||
- --cache=true --cache-dir=/cache
|
- clone
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /cache
|
|
||||||
# depends_on:
|
|
||||||
# - clone
|
|
||||||
|
|
||||||
- name: kaniko nocr telegram client build & push
|
- name: docker nocr telegram client build & push
|
||||||
image: plugins/kaniko
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: hub.musk.fun
|
registry: hub.musk.fun
|
||||||
repo: hub.musk.fun/k8s/nocr/telegram_client
|
repo: hub.musk.fun/k8s/nocr/telegram_client
|
||||||
@ -103,16 +87,11 @@ steps:
|
|||||||
from_secret: hub_username
|
from_secret: hub_username
|
||||||
password:
|
password:
|
||||||
from_secret: hub_password
|
from_secret: hub_password
|
||||||
build_args:
|
depends_on:
|
||||||
- --cache=true --cache-dir=/cache
|
- clone
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /cache
|
|
||||||
# depends_on:
|
|
||||||
# - clone
|
|
||||||
|
|
||||||
- name: kaniko nocr text matcher migrator build & push
|
- name: docker nocr text matcher migrator build & push
|
||||||
image: plugins/kaniko
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: hub.musk.fun
|
registry: hub.musk.fun
|
||||||
repo: hub.musk.fun/k8s/nocr/text_matcher_migrator
|
repo: hub.musk.fun/k8s/nocr/text_matcher_migrator
|
||||||
@ -123,16 +102,11 @@ steps:
|
|||||||
from_secret: hub_username
|
from_secret: hub_username
|
||||||
password:
|
password:
|
||||||
from_secret: hub_password
|
from_secret: hub_password
|
||||||
build_args:
|
depends_on:
|
||||||
- --cache=true --cache-dir=/cache
|
- clone
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /cache
|
|
||||||
# depends_on:
|
|
||||||
# - clone
|
|
||||||
|
|
||||||
- name: kaniko nocr users migrator build & push
|
- name: docker nocr users migrator build & push
|
||||||
image: plugins/kaniko
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: hub.musk.fun
|
registry: hub.musk.fun
|
||||||
repo: hub.musk.fun/k8s/nocr/users_migrator
|
repo: hub.musk.fun/k8s/nocr/users_migrator
|
||||||
@ -143,19 +117,11 @@ steps:
|
|||||||
from_secret: hub_username
|
from_secret: hub_username
|
||||||
password:
|
password:
|
||||||
from_secret: hub_password
|
from_secret: hub_password
|
||||||
build_args:
|
depends_on:
|
||||||
- --cache=true --cache-dir=/cache
|
- clone
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /cache
|
|
||||||
# depends_on:
|
|
||||||
# - kaniko nocr users build & push
|
|
||||||
|
|
||||||
- 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
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /app/
|
|
||||||
environment:
|
environment:
|
||||||
VERSION: ${DRONE_TAG}
|
VERSION: ${DRONE_TAG}
|
||||||
NUGETAPIKEY:
|
NUGETAPIKEY:
|
||||||
@ -164,14 +130,11 @@ steps:
|
|||||||
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
|
- 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 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
|
- dotnet nuget push ./flea/telegram-listener/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - kaniko nocr telegram listener build & push
|
- docker nocr telegram listener build & push
|
||||||
|
|
||||||
- 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
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /app/
|
|
||||||
environment:
|
environment:
|
||||||
VERSION: ${DRONE_TAG}
|
VERSION: ${DRONE_TAG}
|
||||||
NUGETAPIKEY:
|
NUGETAPIKEY:
|
||||||
@ -180,14 +143,11 @@ steps:
|
|||||||
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
|
- 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 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
|
- dotnet nuget push ./flea/text-matcher/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - kaniko nocr text matcher migrator build & push
|
- docker nocr text matcher migrator build & push
|
||||||
|
|
||||||
- name: nocr users nuget package make & push
|
- name: nocr users nuget package make & push
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
volumes:
|
|
||||||
- name: local-cache
|
|
||||||
path: /app/
|
|
||||||
environment:
|
environment:
|
||||||
VERSION: ${DRONE_TAG}
|
VERSION: ${DRONE_TAG}
|
||||||
NUGETAPIKEY:
|
NUGETAPIKEY:
|
||||||
@ -196,14 +156,5 @@ steps:
|
|||||||
- dotnet nuget add source --name musk https://gitea.musk.fun/api/packages/nocr/nuget/index.json
|
- 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 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
|
- dotnet nuget push ./flea/users/bin/*Contract*.nupkg --api-key $NUGETAPIKEY --source musk --skip-duplicate
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - kaniko nocr users build & push
|
- docker nocr users build & push
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: nfs-cache
|
|
||||||
claim:
|
|
||||||
name: nfs-cache-claim
|
|
||||||
- name: local-cache
|
|
||||||
claim:
|
|
||||||
name: local-cache-claim
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user