This commit is contained in:
40
.drone.yml
40
.drone.yml
@@ -93,7 +93,7 @@
|
||||
# ---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Publish Pipeline - NPM Package
|
||||
name: Publish Pipeline
|
||||
group: publish
|
||||
|
||||
workspace:
|
||||
@@ -107,6 +107,7 @@ steps:
|
||||
- yarn build
|
||||
- name: Publish NPM
|
||||
image: plugins/npm
|
||||
failure: ignore
|
||||
settings:
|
||||
username:
|
||||
from_secret: registry_username
|
||||
@@ -126,43 +127,13 @@ steps:
|
||||
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}}",
|
||||
"text": "[{{ repo.name }} - New npm package release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||
"username":"DroneBot"
|
||||
}
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- 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
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@@ -189,7 +160,7 @@ steps:
|
||||
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}}",
|
||||
"text": "[{{ repo.name }} - New docker image release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||
"username":"DroneBot"
|
||||
}
|
||||
when:
|
||||
@@ -198,6 +169,9 @@ steps:
|
||||
- failure
|
||||
|
||||
volumes:
|
||||
- host:
|
||||
name: yarnrc
|
||||
path: /Volume1/docker/.yarnrc.yml
|
||||
- host:
|
||||
name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
|
||||
Reference in New Issue
Block a user