Recombine Steps
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2023-05-04 20:48:13 -04:00
parent 7bbb4bb036
commit 1c5fdabca6

View File

@@ -93,7 +93,7 @@
# --- # ---
kind: pipeline kind: pipeline
type: docker type: docker
name: Publish Pipeline - NPM Package name: Publish Pipeline
group: publish group: publish
workspace: workspace:
@@ -107,6 +107,7 @@ steps:
- yarn build - yarn build
- name: Publish NPM - name: Publish NPM
image: plugins/npm image: plugins/npm
failure: ignore
settings: settings:
username: username:
from_secret: registry_username from_secret: registry_username
@@ -126,43 +127,13 @@ steps:
template: | template: |
{ {
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", "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}}", "text": "[{{ repo.name }} - New npm package release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
"username":"DroneBot" "username":"DroneBot"
} }
when: when:
status: status:
- success - success
- failure - failure
volumes:
- host:
name: yarnrc
path: /Volume1/docker/.yarnrc.yml
# 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 - name: Publish Image
image: plugins/docker image: plugins/docker
settings: settings:
@@ -189,7 +160,7 @@ steps:
template: | template: |
{ {
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", "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}}", "text": "[{{ repo.name }} - New docker image release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
"username":"DroneBot" "username":"DroneBot"
} }
when: when:
@@ -198,6 +169,9 @@ steps:
- failure - failure
volumes: volumes:
- host:
name: yarnrc
path: /Volume1/docker/.yarnrc.yml
- host: - host:
name: dockersock name: dockersock
path: /var/run/docker.sock path: /var/run/docker.sock