2
0
Fork 0

Reduce pipeline stages
continuous-integration/drone/push Build was killed Details

pull/8/head
Ambrose Chua 2019-04-02 12:27:20 +08:00
parent 273ddef133
commit 7f2d6cf169
2 changed files with 51 additions and 0 deletions

View File

@ -12,6 +12,9 @@ steps:
from_secret: ssh_key
script:
- cd /home/core/staging && ls
when:
branch:
- master
---
kind: pipeline
name: backend-auth
@ -34,6 +37,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -71,6 +77,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -108,6 +117,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -145,6 +157,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -182,6 +197,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -219,6 +237,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -256,6 +277,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -293,6 +317,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -330,6 +357,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -367,6 +397,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
@ -404,6 +437,9 @@ steps:
backend-store: 'https://git.makerforce.io/beep/backend-store.git'
backend-subscribe: 'https://git.makerforce.io/beep/backend-subscribe.git'
backend-transcription: 'https://git.makerforce.io/beep/backend-transcription.git'
when:
branch:
- master
- name: copy-docker-compose
image: appleboy/drone-scp
settings:
@ -453,6 +489,9 @@ steps:
settings:
webhook:
from_secret: slack_webhook_beep
when:
branch:
- master
depends_on:
- backend-auth
- backend-bite

View File

@ -30,6 +30,9 @@ const yamls = dockers.map(f => ({
recursive: true,
submodule_override,
},
when: {
branch: ['master'],
},
},
{
name: 'docker',
@ -74,6 +77,9 @@ const sshTest = {
'cd /home/core/staging && ls'
],
},
when: {
branch: ['master'],
},
},
],
};
@ -92,6 +98,9 @@ const deploy = {
recursive: true,
submodule_override,
},
when: {
branch: ['master'],
},
},
{
name: 'copy-docker-compose',
@ -156,6 +165,9 @@ const deploy = {
from_secret: 'slack_webhook_beep',
},
},
when: {
branch: ['master'],
},
},
],
depends_on: dockers,