@@ -35,66 +35,51 @@ default: docker-images layers
3535
3636
3737# Build Docker images *locally*
38- docker-images : docker-images-php-80 docker-images-php-81 docker-images-php-82 docker-images-php-83 docker-images-php-84
38+ docker-images : docker-images-php-82 docker-images-php-83 docker-images-php-84 docker-images-php-85
3939docker-images-php-% :
4040 PHP_VERSION=$* ${BAKE_COMMAND} --load
4141
4242
4343# Build Lambda layers (zip files) *locally*
44- layers : layer-php-80 layer-php-81 layer-php-82 layer-php-83 layer-php-84 layer-php-80-fpm layer-php-81-fpm layer-php-82-fpm layer-php-83-fpm layer-php-84-fpm
45- # Build the console layer only once (x86 and single PHP version)
46- @if [ ${CPU} = " x86" ]; then \
47- $(MAKE ) layer-console; \
48- fi
49- layer-console :
50- ./utils/docker-zip-dir.sh bref/console-zip console
51- # This rule matches with a wildcard, for example `layer-php-80`.
52- # The `$*` variable will contained the matched part, in this case `php-80`.
44+ layers : layer-php-82 layer-php-83 layer-php-84 layer-php-85
45+ # This rule matches with a wildcard, for example `layer-php-84`.
46+ # The `$*` variable will contained the matched part, in this case `php-84`.
5347layer-% :
5448 ./utils/docker-zip-dir.sh bref/${CPU_PREFIX} $* ${CPU_PREFIX} $*
5549
5650
5751# Upload the layers to AWS Lambda
5852# Uses the current AWS_PROFILE. Most users will not want to use this option
5953# as this will publish all layers to all regions + publish all Docker images.
60- upload-layers : upload-layers-php-80 upload-layers-php-81 upload-layers-php-82 upload-layers-php-83 upload-layers-php-84
61- # Upload the console layer only once (x86 and single PHP version)
62- @if [ ${CPU} = " x86" ]; then \
63- LAYER_NAME=console $(MAKE ) -C ./utils/lambda-publish publish-parallel; \
64- fi
54+ upload-layers : upload-layers-php-82 upload-layers-php-83 upload-layers-php-84 upload-layers-php-85
6555upload-layers-php-% :
66- # Upload the function layers to AWS
6756 LAYER_NAME=${CPU_PREFIX} php-$* $(MAKE ) -C ./utils/lambda-publish publish-parallel
68- # Upload the FPM layers to AWS
69- LAYER_NAME=${CPU_PREFIX} php-$* -fpm $(MAKE ) -C ./utils/lambda-publish publish-parallel
7057
7158
7259# Publish Docker images to Docker Hub.
73- upload-to-docker-hub : upload-to-docker-hub-php-80 upload-to-docker-hub-php-81 upload-to-docker-hub-php-82 upload-to-docker-hub-php-83 upload-to-docker-hub-php-84
60+ upload-to-docker-hub : upload-to-docker-hub-php-82 upload-to-docker-hub-php-83 upload-to-docker-hub-php-84 upload-to-docker-hub-php-85
7461upload-to-docker-hub-php-% :
7562 # Make sure we have defined the docker tag
7663 (test $(DOCKER_TAG)) && echo "Tagging images with \"${DOCKER_TAG}\"" || echo "You have to define environment variable DOCKER_TAG"
7764 test $(DOCKER_TAG)
7865
7966 set -e ; \
8067 for image in \
81- "bref/${CPU_PREFIX}php-$*" "bref/${CPU_PREFIX}php-$*-fpm" "bref/${CPU_PREFIX}php-$*-console" \
82- "bref/${CPU_PREFIX}build-php-$*" "bref/${CPU_PREFIX}php-$*-fpm-dev"; \
68+ "bref/${CPU_PREFIX}php-$*" "bref/${CPU_PREFIX}build-php-$*" "bref/${CPU_PREFIX}php-$*-dev"; \
8369 do \
84- docker tag $$image $$image:2 ; \
70+ docker tag $$image $$image:3 ; \
8571 docker tag $$image $$image:${DOCKER_TAG} ; \
86- docker push $$image:2 ; \
72+ docker push $$image:3 ; \
8773 docker push $$image:${DOCKER_TAG} ; \
88- docker push $$image:latest ; \
8974 done
9075
9176
92- test : test-80 test-81 test- 82 test-83 test-84
77+ test : test-82 test-83 test-84 test-85
9378test-% :
9479 cd tests && $(MAKE ) test-$*
9580
9681
97- clean : clean-80 clean-81 clean- 82 clean-83 clean-84
82+ clean : clean-82 clean-83 clean-84 clean-85
9883 # Clear the build cache, else all images will be rebuilt using cached layers
9984 docker builder prune
10085 # Remove zip files
@@ -104,7 +89,4 @@ clean-%:
10489 docker image rm --force bref/${CPU_PREFIX} build-php-$* \
10590 bref/${CPU_PREFIX} php-$* \
10691 bref/${CPU_PREFIX} php-$* -zip \
107- bref/${CPU_PREFIX} php-$* -fpm \
108- bref/${CPU_PREFIX} php-$* -fpm-zip \
109- bref/${CPU_PREFIX} php-$* -fpm-dev \
110- bref/${CPU_PREFIX} php-$* -console
92+ bref/${CPU_PREFIX} php-$* -dev
0 commit comments