Is there any way to setup a parallel pipeline without copying each pipeline syntax? Making the syntax more DRY?
type: kubernetes
name: test-worker-1
resources:
requests:
cpu: 3000
memory: 3000MiB
trigger:
event:
- custom
default-cypress: &default-cypress
image: public.ecr.aws/cypress-io/cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
failure: always
...
resources: #Limits each container
limits:
cpu: 4000
memory: 8000MiB
steps:
- name: install
<<: *default-cypress
commands:
- echo "Starting install - $(DRONE_BUILD_STARTED)"
...
volumes:
- name: cypress-cache
temp: {}
---
kind: pipeline
type: kubernetes
name: test-worker-2
resources:
requests:
cpu: 3000
memory: 3000MiB
trigger:
event:
- custom
default-cypress: &default-cypress
image: public.ecr.aws/cypress-io/cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
failure: always
privileged: true
...
steps:
- name: install
<<: *default-cypress
commands:
- echo "Starting install - $(DRONE_BUILD_STARTED)"
- npm ci
- $(npm bin)/cypress verify
...
volumes:
- name: cypress-cache
temp: {}
---
kind: pipeline
type: kubernetes
name: test-worker-3
...
---
kind: pipeline
type: kubernetes
name: test-worker-4
...
---
kind: pipeline
type: kubernetes
name: after
trigger:
event:
- custom
steps:
- name: notify
...
depends_on:
- test-worker-1
- test-worker-2
- test-worker-3
- test-worker-4```