diff --git a/.drone.yml b/.drone.yml index dacb56d..9b5c6a0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,72 +1,72 @@ ---- -kind: pipeline -type: kubernetes -name: Nocr - -metadata: - namespace: musk-drone - -trigger: - branch: - - main - # event: - # - tag - -clone: - disable: true - -steps: - - name: clone - image: alpine/git - settings: - tags: true - commands: - - pwd - - git clone https://gitea.musk.fun/nocr/flea - - cd flea - - git submodule update --init --recursive - - - name: kaniko nocr telegram listener build & push - image: plugins/kaniko - settings: - registry: hub.musk.fun - repo: hub.musk.fun/k8s/nocr/telegram_listener - tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"] - context: ./flea/telegram-listener - dockerfile: ./flea/telegram-listener/src/Nocr.TelegramListener.Host/Dockerfile - username: - from_secret: hub_username - password: - from_secret: hub_password - volumes: - - name: kaniko-cache - mountPath: / - depends_on: - - clone - - - name: kaniko nocr text matcher 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/text-matcher - dockerfile: ./flea/text-matcher/src/Nocr.TextMatcher.Host/Dockerfile - username: - from_secret: hub_username - password: - from_secret: hub_password - volumes: - - name: kaniko-cache - mountPath: / - depends_on: - - clone - -volumes: -- name: dotnet-cache - claim: - name: dotnet-cache-claim -- name: kaniko-cache - claim: - name: kaniko-cache-claim - +--- +kind: pipeline +type: kubernetes +name: Nocr + +metadata: + namespace: musk-drone + +trigger: + branch: + - main + # event: + # - tag + +clone: + disable: true + +steps: + - name: clone + image: alpine/git + settings: + tags: true + commands: + - pwd + - git clone https://gitea.musk.fun/nocr/flea + - cd flea + - git submodule update --init --recursive + + - name: kaniko nocr telegram listener build & push + image: plugins/kaniko + settings: + registry: hub.musk.fun + repo: hub.musk.fun/k8s/nocr/telegram_listener + tags: ["${DRONE_COMMIT_SHA:0:7}", "latest"] + context: ./flea/telegram-listener + dockerfile: ./flea/telegram-listener/src/Nocr.TelegramListener.Host/Dockerfile + username: + from_secret: hub_username + password: + from_secret: hub_password + volumes: + - name: kaniko-cache + path: / + depends_on: + - clone + + - name: kaniko nocr text matcher 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/text-matcher + dockerfile: ./flea/text-matcher/src/Nocr.TextMatcher.Host/Dockerfile + username: + from_secret: hub_username + password: + from_secret: hub_password + volumes: + - name: kaniko-cache + path: / + depends_on: + - clone + +volumes: +- name: dotnet-cache + claim: + name: dotnet-cache-claim +- name: kaniko-cache + claim: + name: kaniko-cache-claim +