From 8e06b98695e27c44e95d60395c22a00cd11cfbfb Mon Sep 17 00:00:00 2001 From: mifi Date: Thu, 4 May 2023 12:15:59 -0400 Subject: [PATCH] Parallel publishing --- .drone.yml | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index f2ad74f..57ec5c5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -93,7 +93,8 @@ # --- kind: pipeline type: docker -name: Publish Pipeline +name: Publish Pipeline - NPM Package +group: publish workspace: path: /drone/grow @@ -111,6 +112,46 @@ steps: registry: git.mifi.dev token: - from_secret: gitea_token +- name: Send Status Notifications + image: plugins/webhook + settings: + urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r + content_type: application/json + template: | + { + "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", + "text": "[{{ repo.name }} - New tagged docker image release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}", + "username":"DroneBot" + } + when: + status: + - success + - failure + +# depends_on: +# - Build Pipeline + +trigger: + branch: + - main + # event: + # - tag + +--- +kind: pipeline +type: docker +name: Publish Pipeline - Docker Image +group: publish + +workspace: + path: /drone/grow + +steps: +- name: Build Service + image: node:latest + commands: + - yarn install + - yarn build - name: Publish Image image: plugins/docker settings: