Skip to content

Commit 637ae0b

Browse files
authored
Merge pull request #77 from sparkfabrik/feat/fastcgi_user_agent
feat: log user agent, restore old and used PHP versions and actions version upgrade
2 parents da17564 + 6c02772 commit 637ae0b

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

.github/workflows/docker-publish.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Docker
2+
23
on:
3-
push:
4-
branches:
5-
- "master"
64
pull_request:
7-
branches:
8-
- "master"
5+
push:
6+
branches: "master"
97

108
env:
119
IMAGE_NAME: docker-php-base-image
@@ -16,16 +14,16 @@ jobs:
1614
runs-on: ubuntu-latest
1715
strategy:
1816
matrix:
19-
tag: [8-3-2, 8-2-3, 8-1-16]
17+
tag: [8-3-2, 8-2-3, 8-1-16, 8-1-10]
2018
flavour: ["", "-rootless"]
2119
steps:
22-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2321

2422
- name: Set up QEMU
25-
uses: docker/setup-qemu-action@v2
23+
uses: docker/setup-qemu-action@v3
2624

2725
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v2
26+
uses: docker/setup-buildx-action@v3
2927

3028
- name: Build and test the image
3129
run: make build-${{ matrix.tag }}${{ matrix.flavour }}
@@ -36,10 +34,16 @@ jobs:
3634
if: github.ref == 'refs/heads/master'
3735
strategy:
3836
matrix:
39-
tag: [8.3.2-fpm-alpine3.18, 8.2.3-fpm-alpine3.16, 8.1.16-fpm-alpine3.16]
37+
tag:
38+
[
39+
8.3.2-fpm-alpine3.18,
40+
8.2.3-fpm-alpine3.16,
41+
8.1.16-fpm-alpine3.16,
42+
8.1.10-fpm-alpine3.16,
43+
]
4044
flavour: ["", "-rootless"]
4145
steps:
42-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
4347

4448
# Refs https://github.com/docker/login-action#github-container-registry
4549
- name: Login to GitHub Container Registry
@@ -61,10 +65,10 @@ jobs:
6165
test -d $BASE_FOLDER && test -f $BASE_FOLDER/Dockerfile
6266
6367
- name: Set up QEMU
64-
uses: docker/setup-qemu-action@v2
68+
uses: docker/setup-qemu-action@v3
6569

6670
- name: Set up Docker Buildx
67-
uses: docker/setup-buildx-action@v2
71+
uses: docker/setup-buildx-action@v3
6872

6973
- name: Build and push images to GitHub Container Registry
7074
if: ${{ matrix.flavour == '' }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[www]
2-
access.format = '{"requestId": "%{WEBSERVER_REQUEST_ID}e", "status": %s, "time": "%t", "requestMethod": "%m", "requestUrl": "%r%Q%q", "requestUri": "%{REQUEST_URI}e", "remoteAddr": "%{REMOTE_ADDR}e", "http_x_forwarded_for": "%{X_FORWARDED_FOR}e", "proxy_add_x_forwarded_for": "%{ADD_X_FORWARDED_FOR}e"}';
2+
access.format = '{"requestId": "%{WEBSERVER_REQUEST_ID}e", "status": %s, "time": "%t", "requestMethod": "%m", "requestUrl": "%r%Q%q", "requestUri": "%{REQUEST_URI}e", "remoteAddr": "%{REMOTE_ADDR}e", "http_x_forwarded_for": "%{X_FORWARDED_FOR}e", "proxy_add_x_forwarded_for": "%{ADD_X_FORWARDED_FOR}e", "http_user_agent": "%{HTTP_USER_AGENT}e"}';

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ COMPOSER_VERSION ?= 2.5.4
134134
# build-8-1-12-rootless: PHPVER=8.1.12-fpm-alpine3.16
135135
# build-8-1-12-rootless: build-rootless-template
136136

137-
# build-8-1-10: PHPVER=8.1.10-fpm-alpine3.16
138-
# build-8-1-10: build-template
137+
build-8-1-10: PHPVER=8.1.10-fpm-alpine3.16
138+
build-8-1-10: build-template
139139

140-
# build-8-1-10-rootless: PHPVER=8.1.10-fpm-alpine3.16
141-
# build-8-1-10-rootless: build-rootless-template
140+
build-8-1-10-rootless: PHPVER=8.1.10-fpm-alpine3.16
141+
build-8-1-10-rootless: build-rootless-template
142142

143143
build-8-1-16: PHPVER=8.1.16-fpm-alpine3.16
144144
build-8-1-16: build-template
@@ -158,7 +158,6 @@ build-8-3-2: build-template
158158
build-8-3-2-rootless: PHPVER=8.3.2-fpm-alpine3.18
159159
build-8-3-2-rootless: build-rootless-template
160160

161-
162161
build-template: guessing-folder build-test-image
163162
docker buildx build \
164163
--load \

0 commit comments

Comments
 (0)