Skip to content

Commit 7243bb2

Browse files
committed
Remove support for PHP 8.0 and 8.1 in Bref v3
1 parent 414a787 commit 7243bb2

File tree

7 files changed

+14
-1128
lines changed

7 files changed

+14
-1128
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
script: |
2626
const matrix = {
2727
cpu: ['x86', 'arm'],
28-
php_version: ['80', '81', '82', '83', '84'],
28+
php_version: ['82', '83', '84'],
2929
}
3030
3131
// If this is a third-party pull request, skip ARM builds

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,29 @@ 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
3939
docker-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
45-
# This rule matches with a wildcard, for example `layer-php-80`.
46-
# The `$*` variable will contained the matched part, in this case `php-80`.
44+
layers: layer-php-82 layer-php-83 layer-php-84
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`.
4747
layer-%:
4848
./utils/docker-zip-dir.sh bref/${CPU_PREFIX}$* ${CPU_PREFIX}$*
4949

5050

5151
# Upload the layers to AWS Lambda
5252
# Uses the current AWS_PROFILE. Most users will not want to use this option
5353
# as this will publish all layers to all regions + publish all Docker images.
54-
upload-layers: upload-layers-php-80 upload-layers-php-81 upload-layers-php-82 upload-layers-php-83 upload-layers-php-84
54+
upload-layers: upload-layers-php-82 upload-layers-php-83 upload-layers-php-84
5555
upload-layers-php-%:
5656
LAYER_NAME=${CPU_PREFIX}php-$* $(MAKE) -C ./utils/lambda-publish publish-parallel
5757

5858

5959
# Publish Docker images to Docker Hub.
60-
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
6161
upload-to-docker-hub-php-%:
6262
# Make sure we have defined the docker tag
6363
(test $(DOCKER_TAG)) && echo "Tagging images with \"${DOCKER_TAG}\"" || echo "You have to define environment variable DOCKER_TAG"
@@ -73,12 +73,12 @@ upload-to-docker-hub-php-%:
7373
done
7474

7575

76-
test: test-80 test-81 test-82 test-83 test-84
76+
test: test-82 test-83 test-84
7777
test-%:
7878
cd tests && $(MAKE) test-$*
7979

8080

81-
clean: clean-80 clean-81 clean-82 clean-83 clean-84
81+
clean: clean-82 clean-83 clean-84
8282
# Clear the build cache, else all images will be rebuilt using cached layers
8383
docker builder prune
8484
# Remove zip files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The published Lambda layers will be public (they are readonly anyway). You can f
9494
If you ever need to check out the content of a layer, you can start a `bash` terminal inside the Docker image:
9595

9696
```sh
97-
docker run --rm -it --entrypoint=bash bref/php-80
97+
docker run --rm -it --entrypoint=bash bref/php-84
9898
```
9999

100100
> **Note:**

docker-bake.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ variable "CPU_PREFIX" {
99
default = ""
1010
}
1111
variable "PHP_VERSION" {
12-
default = "80"
12+
default = "84"
1313
}
1414
variable "IMAGE_VERSION_SUFFIX" {
1515
default = "x86_64"

0 commit comments

Comments
 (0)