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

View File

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