mirror of
https://github.com/jkaninda/nginx-php-fpm.git
synced 2026-11-13 08:37:16 +00:00
Tests / integration (8.2, alpine) (push) Canceled after 0s
Tests / integration (8.2, debian) (push) Canceled after 0s
Tests / integration (8.3, alpine) (push) Canceled after 0s
Tests / integration (8.3, debian) (push) Canceled after 0s
Tests / integration (8.4, alpine) (push) Canceled after 0s
Tests / integration (8.4, debian) (push) Canceled after 0s
Tests / integration (8.5, alpine) (push) Canceled after 0s
Tests / integration (8.5, debian) (push) Canceled after 0s
PHP 8.1 is end-of-life. It is dropped from the default build and test matrices. 8.1 and 8.1-alpine are still built, multi-arch, by the manual legacy job (workflow_dispatch with legacy=true), together with 7.2, 7.3, 7.4 and 8.0. This replaces manual-build.yml.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
IMAGE_NAME?=jkaninda/nginx-php-fpm
|
|
PHP_VERSIONS?=8.2 8.3 8.4 8.5
|
|
LATEST_PHP?=8.5
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
##@ Build
|
|
.PHONY: build
|
|
build: $(addprefix build-,$(PHP_VERSIONS))
|
|
|
|
.PHONY: build-alpine
|
|
build-alpine: $(addsuffix -alpine,$(addprefix build-,$(PHP_VERSIONS)))
|
|
|
|
.PHONY: build-latest
|
|
build-latest: build-$(LATEST_PHP) build-$(LATEST_PHP)-alpine
|
|
docker tag ${IMAGE_NAME}:$(LATEST_PHP) ${IMAGE_NAME}:latest
|
|
docker tag ${IMAGE_NAME}:$(LATEST_PHP)-alpine ${IMAGE_NAME}:alpine
|
|
|
|
# Legacy images (7.2, 7.3, 7.4, 8.0). PHP 8.1 is legacy too but uses the
|
|
# shared Dockerfiles: make build-8.1 / make build-8.1-alpine
|
|
.PHONY: build-7.2 build-7.3 build-7.4 build-8.0
|
|
build-7.2 build-7.3 build-7.4 build-8.0: build-%:
|
|
docker build -f src/docker/$*/Dockerfile -t ${IMAGE_NAME}:$* .
|
|
|
|
.PHONY: build-%-alpine
|
|
build-%-alpine:
|
|
docker build --build-arg phpVersion=$* -f src/docker/Dockerfile.alpine -t ${IMAGE_NAME}:$*-alpine .
|
|
|
|
.PHONY: build-%
|
|
build-%:
|
|
docker build --build-arg phpVersion=$* -f src/docker/Dockerfile -t ${IMAGE_NAME}:$* .
|
|
|
|
##@ Test
|
|
.PHONY: test
|
|
test: build-$(LATEST_PHP)
|
|
IMAGE=${IMAGE_NAME}:$(LATEST_PHP) ./tests/integration.sh
|
|
|
|
.PHONY: test-alpine
|
|
test-alpine: build-$(LATEST_PHP)-alpine
|
|
IMAGE=${IMAGE_NAME}:$(LATEST_PHP)-alpine ./tests/integration.sh
|