| @@ -0,0 +1,32 @@ | |||||
| kind: pipeline | |||||
| type: docker | |||||
| name: build | |||||
| steps: | |||||
| - name: build_php_base | |||||
| image: plugins/docker | |||||
| settings: | |||||
| dockerfile: docker/php/Dockerfile | |||||
| registry: localhost | |||||
| repo: arbitry_php_base | |||||
| dry_run: true | |||||
| insecure: true | |||||
| build_args: | |||||
| PHP_VERSION: 7.4.4 | |||||
| - name: build_php_fpm | |||||
| image: plugins/docker | |||||
| settings: | |||||
| dockerfile: docker/php-fpm/Dockerfile | |||||
| registry: localhost | |||||
| repo: arbitry_php_fpm | |||||
| dry_run: true | |||||
| insecure: true | |||||
| build_args: | |||||
| PHP_VERSION: 7.4.4 | |||||
| BUILD_IMAGE: arbitry_php_base | |||||
| depends_on: | |||||
| - build_php_base | |||||
| trigger: | |||||
| status: | |||||
| - success | |||||
| @@ -0,0 +1 @@ | |||||
| .idea | |||||
| @@ -0,0 +1,5 @@ | |||||
| ARG PHP_VERSION=7.4.4 | |||||
| ARG BUILD_IMAGE | |||||
| FROM php:$PHP_VERSION-fpm-alpine | |||||
| FROM $BUILD_IMAGE:latest as build | |||||
| @@ -0,0 +1,14 @@ | |||||
| ARG PHP_VERSION=7.4.4 | |||||
| FROM php:$PHP_VERSION-alpine | |||||
| RUN echo "date.timezone = UTC" > /usr/local/etc/php/conf.d/etc.ini | |||||
| ENV TERM xterm | |||||
| RUN apk add --update --no-cache \ | |||||
| libcurl \ | |||||
| bash \ | |||||
| curl | |||||
| RUN docker-php-ext-install bcmath | |||||
| COPY ./project /projects/main | |||||
| @@ -0,0 +1,5 @@ | |||||
| <?php | |||||
| declare(strict_types=1); | |||||
| phpinfo(); | |||||