2018-03-16 17:34:57 +08:00
|
|
|
# image: docker:latest
|
|
|
|
# services:
|
|
|
|
# - docker:dind
|
|
|
|
image: jonaskello/docker-and-compose:1.12.1-1.8.0
|
|
|
|
services:
|
|
|
|
- docker:1.12.1-dind
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- docker info
|
|
|
|
- docker-compose version
|
|
|
|
- cp env-example .env
|
|
|
|
- sed -i -- "s/=false/=true/g" .env
|
|
|
|
- cat .env
|
|
|
|
- env | sort
|
|
|
|
|
2018-04-06 22:24:11 +08:00
|
|
|
build:5.6:php-fpm:
|
2018-03-16 17:34:57 +08:00
|
|
|
variables:
|
2018-04-06 22:24:11 +08:00
|
|
|
PHP_VERSION: "5.6"
|
2018-03-16 17:34:57 +08:00
|
|
|
script:
|
|
|
|
- docker-compose build php-fpm
|
|
|
|
|
2018-04-06 22:24:11 +08:00
|
|
|
build:7.0:php-fpm:
|
2018-03-16 17:34:57 +08:00
|
|
|
variables:
|
2018-04-06 22:24:11 +08:00
|
|
|
PHP_VERSION: "7.0"
|
2018-03-16 17:34:57 +08:00
|
|
|
script:
|
|
|
|
- docker-compose build php-fpm
|
|
|
|
|
2018-04-06 22:24:11 +08:00
|
|
|
build:7.1:php-fpm:
|
2018-03-16 17:34:57 +08:00
|
|
|
variables:
|
2018-04-06 22:24:11 +08:00
|
|
|
PHP_VERSION: "7.1"
|
2018-03-16 17:34:57 +08:00
|
|
|
script:
|
|
|
|
- docker-compose build php-fpm
|
|
|
|
|
2018-04-06 22:24:11 +08:00
|
|
|
build:7.2:php-fpm:
|
2018-03-16 17:34:57 +08:00
|
|
|
variables:
|
2018-04-06 22:24:11 +08:00
|
|
|
PHP_VERSION: "7.2"
|
2018-03-16 17:34:57 +08:00
|
|
|
script:
|
|
|
|
- docker-compose build php-fpm
|
|
|
|
|
2018-04-06 22:24:11 +08:00
|
|
|
build:5.6:workspace:
|
2018-03-16 17:34:57 +08:00
|
|
|
variables:
|
2018-04-06 22:24:11 +08:00
|
|
|
PHP_VERSION: "5.6"
|
2018-03-16 17:34:57 +08:00
|
|
|
script:
|
|
|
|
- docker-compose build workspace
|
|
|
|
|
2018-04-06 22:24:11 +08:00
|
|
|
build:7.0:workspace:
|
2018-03-16 17:34:57 +08:00
|
|
|
variables:
|
2018-04-06 22:24:11 +08:00
|
|
|
PHP_VERSION: "7.0"
|
2018-03-16 17:34:57 +08:00
|
|
|
script:
|
|
|
|
- docker-compose build workspace
|
|
|
|
|
2018-04-06 22:24:11 +08:00
|
|
|
build:7.1:workspace:
|
2018-03-16 17:34:57 +08:00
|
|
|
variables:
|
2018-04-06 22:24:11 +08:00
|
|
|
PHP_VERSION: "7.1"
|
2018-03-16 17:34:57 +08:00
|
|
|
script:
|
|
|
|
- docker-compose build workspace
|
|
|
|
|
2018-04-06 22:24:11 +08:00
|
|
|
build:7.2:workspace:
|
2018-03-16 17:34:57 +08:00
|
|
|
variables:
|
2018-04-06 22:24:11 +08:00
|
|
|
PHP_VERSION: "7.2"
|
2018-03-16 17:34:57 +08:00
|
|
|
script:
|
|
|
|
- docker-compose build workspace
|