-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (33 loc) · 1.05 KB
/
Makefile
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
## -----
## Build
## -----
build-7.0-apache-buster:
@cd 7.0/buster/apache && \
docker build . \
-t javanile/php:7.0-apache \
-t javanile/php:7.0-apache-buster \
-t javanile/php:7.0.33-apache-buster
build-7.1-cli-bullseye:
@cd 7.1/bullseye/cli && \
docker build . \
-t javanile/php:7.1-cli \
-t javanile/php:7.1-cli-bullseye \
-t javanile/php:7.1.33-cli-bullseye
## ----
## Push
## ----
push-7.0-apache-buster: build-7.0-apache-buster
@docker push javanile/php:7.0-apache
@docker push javanile/php:7.0-apache-buster
@docker push javanile/php:7.0.33-apache-buster
push-7.1-cli-bullseye: build-7.1-cli-bullseye
@docker push javanile/php:7.0-apache
@docker push javanile/php:7.0-apache-buster
@docker push javanile/php:7.0.33-apache-buster
## ----
## Test
## ----
test-7.0-apache-buster: build-7.0-apache-buster
@docker run --rm javanile/php:7.0-apache-buster bash -c "cat /etc/os-release; php --version"
test-7.1-cli-bullseye: build-7.1-cli-bullseye
@docker run --rm javanile/php:7.1-cli-bullseye bash -c "cat /etc/os-release; php --version"