-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile-neam
37 lines (31 loc) · 2.43 KB
/
Makefile-neam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# workaround for default action
neam: build-neam
build-neam: neam.debian-php neam.stack-images neam.dna-project-base
neam.debian-php:
echo "Building debian-php images"
docker build -t neam/debian-php:fpm-7.0.27-hhvm-3.x.y images/neam/debian-php/php-fpm-hhvm
docker build --build-arg PHP_PACKAGE_NAME_VERSION=7.1 --build-arg PHP_VERSION=7.1.17 -t neam/debian-php:fpm-7.1.17-hhvm-3.x.y images/neam/debian-php/php-fpm-hhvm
docker build --build-arg PHP_PACKAGE_NAME_VERSION=7.2 --build-arg PHP_VERSION=7.2.5 -t neam/debian-php:fpm-7.2.5-hhvm-3.x.y images/neam/debian-php/php-fpm-hhvm
neam.stack-images:
echo "Building debian-php-nginx stack base php image"
docker build -t neam/debian-php:fpm-7.0.27-hhvm-3.x.y-for-debian-php-nginx-stack stacks/neam/debian-php-nginx/stack/php/images
docker build --build-arg PHP_PACKAGE_NAME_VERSION=7.1 -t neam/debian-php:fpm-7.1.17-hhvm-3.x.y-for-debian-php-nginx-stack stacks/neam/debian-php-nginx/stack/php/images/php7.1
docker build --build-arg PHP_PACKAGE_NAME_VERSION=7.2 -t neam/debian-php:fpm-7.2.5-hhvm-3.x.y-for-debian-php-nginx-stack stacks/neam/debian-php-nginx/stack/php/images/php7.2
neam.dna-project-base: export version=1.0.0
neam.dna-project-base: neam.stack-images
echo "Building neam.dna-project-base stack base php image"
docker build -t neam/dna-project-base-debian-php:$(version) stacks/neam/debian-php-nginx.dna-project-base/stack/php/images/dna-project-base-debian-php
docker build -t neam/dna-project-base-debian-php:$(version)-php7.1 stacks/neam/debian-php-nginx.dna-project-base/stack/php/images/dna-project-base-debian-php/php7.1
docker build -t neam/dna-project-base-debian-php:$(version)-php7.2 stacks/neam/debian-php-nginx.dna-project-base/stack/php/images/dna-project-base-debian-php/php7.2
release-neam: export version=1.0.0
release-neam: neam.dna-project-base
echo "Pushing neam images to Docker Hub..."
docker push neam/debian-php:fpm-7.0.27-hhvm-3.x.y
docker push neam/debian-php:fpm-7.0.27-hhvm-3.x.y-for-debian-php-nginx-stack
docker push neam/dna-project-base-debian-php:$(version)
docker push neam/debian-php:fpm-7.1.17-hhvm-3.x.y
docker push neam/debian-php:fpm-7.1.17-hhvm-3.x.y-for-debian-php-nginx-stack
docker push neam/dna-project-base-debian-php:$(version)-php7.1
docker push neam/debian-php:fpm-7.2.5-hhvm-3.x.y
docker push neam/debian-php:fpm-7.2.5-hhvm-3.x.y-for-debian-php-nginx-stack
docker push neam/dna-project-base-debian-php:$(version)-php7.2