forked from php-pm/php-pm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (43 loc) · 2.82 KB
/
Makefile
File metadata and controls
55 lines (43 loc) · 2.82 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
VERSION?=dev-master
HTTP_VERSION?=dev-master
PHP_VERSION?=7.4
.PHONY: default standalone ppm nginx laravel push-all
default: standalone ppm nginx laravel
php8.0: php8.0-nginx php8.0-laravel
standalone:
docker build -t nevrending/phppm:${VERSION}-php${PHP_VERSION}-standalone -f build/standalone.Dockerfile build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
docker tag nevrending/phppm:${VERSION}-php${PHP_VERSION}-standalone nevrending/phppm:${VERSION}-standalone
ppm:
docker build -t nevrending/phppm:${VERSION}-php${PHP_VERSION}-ppm -f build/ppm.Dockerfile build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
docker tag nevrending/phppm:${VERSION}-php${PHP_VERSION}-ppm nevrending/phppm:${VERSION}-ppm
nginx:
docker build -t nevrending/phppm:${VERSION}-php${PHP_VERSION}-nginx -f build/nginx.Dockerfile build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
docker tag nevrending/phppm:${VERSION}-php${PHP_VERSION}-nginx nevrending/phppm:${VERSION}-nginx
laravel:
docker build -t nevrending/phppm:${VERSION}-php${PHP_VERSION}-laravel -f build/laravel.Dockerfile build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
docker tag nevrending/phppm:${VERSION}-php${PHP_VERSION}-laravel nevrending/phppm:${VERSION}-laravel
latest:
docker tag nevrending/phppm:${VERSION}-php${PHP_VERSION}-standalone nevrending/phppm:standalone-latest
docker tag nevrending/phppm:${VERSION}-php${PHP_VERSION}-ppm nevrending/phppm:ppm-latest
docker tag nevrending/phppm:${VERSION}-php${PHP_VERSION}-nginx nevrending/phppm:nginx-latest
docker tag nevrending/phppm:${VERSION}-php${PHP_VERSION}-laravel nevrending/phppm:laravel-latest
docker push nevrending/phppm:standalone-latest
docker push nevrending/phppm:ppm-latest
docker push nevrending/phppm:nginx-latest
docker push nevrending/phppm:laravel-latest
push-all:
docker push nevrending/phppm:${VERSION}-php${PHP_VERSION}-standalone
docker push nevrending/phppm:${VERSION}-standalone
docker push nevrending/phppm:${VERSION}-php${PHP_VERSION}-ppm
docker push nevrending/phppm:${VERSION}-ppm
docker push nevrending/phppm:${VERSION}-php${PHP_VERSION}-nginx
docker push nevrending/phppm:${VERSION}-nginx
docker push nevrending/phppm:${VERSION}-php${PHP_VERSION}-laravel
docker push nevrending/phppm:${VERSION}-laravel
php8.0-nginx:
docker build -t nevrending/phppm:${VERSION}-php8.0-nginx -f build/nginx.php8.0.Dockerfile build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
php8.0-laravel:
docker build -t nevrending/phppm:${VERSION}-php8.0-laravel -f build/laravel.php8.0.Dockerfile build/ --build-arg version=${VERSION} --build-arg http_version=${HTTP_VERSION}
php8.0-push-all:
docker push nevrending/phppm:${VERSION}-php8.0-nginx
docker push nevrending/phppm:${VERSION}-php8.0-laravel