forked from thecodingmachine/docker-images-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 2.03 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
blueprint: ## Generate all blueprints file
@if ! type orbit >/dev/null 2>&1; then echo "Missing orbit dependency, please install from https://github.com/gulien/orbit/"; exit 1; fi
orbit run generate
@gsed -i '1i\# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint)' Dockerfile.*
@gsed -i '1i\[DO NOT EDIT THIS FILE]: <> (Make yours changes in /utils/README.blueprint.md)' README.md
test-latest: test-8.3 ## Test the latest build only
_test-prerequisites: blueprint
docker pull ubuntu:jammy
test-quick: _test-prerequisites ## Test 8.2 and 8.3 quickly
PHP_VERSION=8.2 BRANCH=v7 VARIANT=cli OWNER="qonstrukt" PLATFORM="linux/`uname -p`64" ./build-and-test.sh || (echo "Tests failed" && exit 1)
PHP_VERSION=8.3 BRANCH=v7 VARIANT=cli OWNER="qonstrukt" PLATFORM="linux/`uname -p`64" ./build-and-test.sh || (echo "Tests failed" && exit 1)
echo "Tests passed with success"
test-8.3: _test-prerequisites ## Test php8.3 build only
PHP_VERSION=8.3 BRANCH=v7 VARIANT=cli OWNER="qonstrukt" PLATFORM="linux/`uname -p`64" ./build-and-test.sh || (echo "Tests failed" && exit 1)
PHP_VERSION=8.3 BRANCH=v7 VARIANT=apache OWNER="qonstrukt" PLATFORM="linux/`uname -p`64" ./build-and-test.sh || (echo "Tests failed" && exit 1)
echo "Tests passed with success"
test-8.2: _test-prerequisites ## Test php8.2 build only
PHP_VERSION=8.2 BRANCH=v7 VARIANT=cli OWNER="qonstrukt" PLATFORM="linux/`uname -p`64" ./build-and-test.sh || (echo "Tests failed" && exit 1)
PHP_VERSION=8.2 BRANCH=v7 VARIANT=apache OWNER="qonstrukt" PLATFORM="linux/`uname -p`64" ./build-and-test.sh || (echo "Tests failed" && exit 1)
echo "Tests passed with success"
test-8.1: _test-prerequisites ## Test php8.1 build only
PHP_VERSION=8.1 BRANCH=v7 VARIANT=cli OWNER="qonstrukt" PLATFORM="linux/`uname -p`64" ./build-and-test.sh || (echo "Tests failed" && exit 1)
PHP_VERSION=8.1 BRANCH=v7 VARIANT=apache OWNER="qonstrukt" PLATFORM="linux/`uname -p`64" ./build-and-test.sh || (echo "Tests failed" && exit 1)
echo "Tests passed with success"
clean: ## Clean dangles image after build