Skip to content

v4.0.0 #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Always use LF endings.
* text eol=lf
2 changes: 1 addition & 1 deletion .github/workflows/auto-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
-
name: Checkout Branch ${{ github.ref_name }}
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Create Pull Request
uses: bfren/pull-request@v2
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
-
name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
build:
strategy:
fail-fast: false
Expand All @@ -22,7 +22,7 @@ jobs:
steps:
-
name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Get repository name
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
Expand All @@ -35,20 +35,20 @@ jobs:
id: version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: ./${{ matrix.php }}/Dockerfile
Expand All @@ -59,7 +59,7 @@ jobs:
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: |
bfren/apache-php:php${{ matrix.php }}-dev
bfren/apache-php:php${{ matrix.php }}-${{ steps.version.outputs.contents }}-beta
bfren/apache-php:php${{ matrix.php }}-${{ steps.version.outputs.contents }}-dev
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
-
name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Get repository name
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
Expand Down Expand Up @@ -46,20 +46,20 @@ jobs:
id: version
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: ./${{ matrix.php }}/Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
shell: bash
-
name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions 5.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-ph
ARG BF_IMAGE
ARG BF_VERSION

COPY ./overlay /
COPY ./5.6/overlay /

ENV \
# PHP config directory
PHP_DIR=/etc/php5 \
Expand All @@ -30,7 +33,4 @@ ENV \
# php.ini override: session_max_lifetime
PHP_SESSION_MAX_LIFETIME=86400

COPY ./overlay /
COPY ./5.6/overlay /

RUN bf-install
6 changes: 3 additions & 3 deletions 7.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-ph
ARG BF_IMAGE
ARG BF_VERSION

COPY ./overlay /
COPY ./7.4/overlay /

ENV \
# PHP config directory
PHP_DIR=/etc/php7 \
Expand All @@ -30,7 +33,4 @@ ENV \
# php.ini override: session_max_lifetime
PHP_SESSION_MAX_LIFETIME=86400

COPY ./overlay /
COPY ./7.4/overlay /

RUN bf-install
6 changes: 3 additions & 3 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-ph
ARG BF_IMAGE
ARG BF_VERSION

COPY ./overlay /
COPY ./8.0/overlay /

ENV \
# PHP config directory
PHP_DIR=/etc/php8 \
Expand All @@ -30,7 +33,4 @@ ENV \
# php.ini override: session_max_lifetime
PHP_SESSION_MAX_LIFETIME=86400

COPY ./overlay /
COPY ./8.0/overlay /

RUN bf-install
6 changes: 3 additions & 3 deletions 8.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-ph
ARG BF_IMAGE
ARG BF_VERSION

COPY ./overlay /
COPY ./8.1/overlay /

ENV \
# PHP config directory
PHP_DIR=/etc/php8 \
Expand All @@ -30,7 +33,4 @@ ENV \
# php.ini override: session_max_lifetime
PHP_SESSION_MAX_LIFETIME=86400

COPY ./overlay /
COPY ./8.1/overlay /

RUN bf-install
2 changes: 1 addition & 1 deletion 8.1/overlay/tmp/PHP_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.1.23-r0
8.1.25-r0
2 changes: 1 addition & 1 deletion 8.1/overlay/tmp/PHP_REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.1.23
8.1.25
6 changes: 3 additions & 3 deletions 8.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-ph
ARG BF_IMAGE
ARG BF_VERSION

COPY ./overlay /
COPY ./8.2/overlay /

ENV \
# PHP config directory
PHP_DIR=/etc/php8 \
Expand All @@ -30,7 +33,4 @@ ENV \
# php.ini override: session_max_lifetime
PHP_SESSION_MAX_LIFETIME=86400

COPY ./overlay /
COPY ./8.2/overlay /

RUN bf-install
2 changes: 1 addition & 1 deletion 8.2/overlay/tmp/PHP_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.2.10-r0
8.2.12-r0
2 changes: 1 addition & 1 deletion 8.2/overlay/tmp/PHP_REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.2.10
8.2.12
8 changes: 4 additions & 4 deletions Dockerfile.esh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM bfren/apache:<%= ${APACHE_BASE} %>-<%= ${BASE_REVISION} %>
FROM bfren/apache:<%= ${APACHE_BASE} %>-<%= ${BASE_VERSION} %>

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-apache-php"

ARG BF_IMAGE
ARG BF_VERSION

COPY ./overlay /
COPY ./<%= ${PHP_MINOR} %>/overlay /

ENV \
# PHP config directory
PHP_DIR=/etc/php<%= ${PHP_MAJOR} %> \
Expand All @@ -30,7 +33,4 @@ ENV \
# php.ini override: session_max_lifetime
PHP_SESSION_MAX_LIFETIME=86400

COPY ./overlay /
COPY ./<%= ${PHP_MINOR} %>/overlay /

RUN bf-install
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2023 bfren
Copyright (c) 2020-2024 bfren

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Apache2 plus PHP (5.6, 7.4, 8.0, 8.1 and 8.2) - no SSL support etc, designed to

## Copyright

> Copyright (c) 2020-2023 [bfren](https://bfren.dev) (unless otherwise stated)
> Copyright (c) 2020-2024 [bfren](https://bfren.dev) (unless otherwise stated)
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.15
4.0.0
2 changes: 1 addition & 1 deletion VERSION_MAJOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3
4
2 changes: 1 addition & 1 deletion VERSION_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
4.0
6 changes: 3 additions & 3 deletions generate-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -euo pipefail

docker pull bfren/alpine

BASE_REVISION="3.0.10"
echo "Base: ${BASE_REVISION}"
BASE_VERSION="3.0.10"
echo "Base: ${BASE_VERSION}"

PHP_VERSIONS="5.6 7.4 8.0 8.1 8.2"
for V in ${PHP_VERSIONS} ; do
Expand All @@ -19,7 +19,7 @@ for V in ${PHP_VERSIONS} ; do
-e BF_DEBUG=0 \
bfren/alpine esh \
"/ws/Dockerfile.esh" \
BASE_REVISION=${BASE_REVISION} \
BASE_VERSION=${BASE_VERSION} \
APACHE_BASE=${APACHE_BASE} \
PHP_MAJOR=${PHP_MAJOR} \
PHP_MINOR=${V}
Expand Down
Loading