Feature: add parallelism in drone image compilation pipeline

This commit is contained in:
Julien Fastré 2022-12-27 00:26:43 +01:00
parent d8792adc5f
commit b10074e440
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
1 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,8 @@ steps:
commands:
- composer install --no-scripts --no-interaction
- composer update --with-all-dependencies --no-interaction chill-project/chill-bundles
depends_on:
- build-base-image
- name: build-assets
image: node:14
@ -40,6 +42,8 @@ steps:
commands:
- yarn install
- yarn run encore production
depends_on:
- composer-install
- name: build-image-php
image: plugins/docker
@ -56,6 +60,9 @@ steps:
cache_from:
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
- chill/base-image:latest
depends_on:
- build-assets
- composer-install
- name: build-image-nginx
image: plugins/docker
@ -70,3 +77,5 @@ steps:
tag:
- ${DRONE_TAG}
Dockerfile: docker/nginx/Dockerfile
depends_on:
- build-assets