Skip to content

Commit d6ac223

Browse files
committed
Merge branch '3.3' of github.com:api-platform/docs into 3.3
2 parents 74b70d8 + 63e5d18 commit d6ac223

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.github/workflows/cd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout the website
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
repository: api-platform/website
1717
ref: main
@@ -20,7 +20,7 @@ jobs:
2020
id: yarn-cache-dir-path
2121
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
2222

23-
- uses: actions/cache@v3
23+
- uses: actions/cache@v4
2424
id: yarn-cache
2525
with:
2626
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

.github/workflows/ci.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,34 @@ on:
44
push:
55
pull_request:
66

7+
permissions: {}
8+
79
jobs:
810
build:
911
name: Lint
1012
runs-on: ubuntu-latest
1113

14+
permissions:
15+
contents: read
16+
packages: read
17+
statuses: write
18+
1219
steps:
1320
- name: Checkout
14-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
1524

1625
- name: Lint
1726
uses: github/super-linter/slim@v4
1827
env:
1928
VALIDATE_ALL_CODEBASE: false
2029
VALIDATE_EDITORCONFIG: false
2130
VALIDATE_JSCPD: false
22-
DEFAULT_BRANCH: main
31+
DEFAULT_BRANCH: "3.3"
2332
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2433

25-
- uses: actions/cache@v3
34+
- uses: actions/cache@v4
2635
with:
2736
path: ~/.cache/pip
2837
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}

core/filters.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class Book {}
3434
Note that `property` is used to document the Hydra view. You can also specify an [OpenAPI Parameter](https://api-platform.com/docs/references/OpenApi/Model/Parameter/) if needed.
3535
A Parameter can be linked to a filter, there are two types of filters:
3636

37-
- metadata filters, most common are serializer filters (PropertyFilter and GroupFilter) that alter the normalization context
38-
- query filters that alter the results of your database queries (Doctrine, Eloquent, Elasticsearch etc.)
37+
- metadata filters, most common are serializer filters (PropertyFilter and GroupFilter) that alter the normalization context
38+
- query filters that alter the results of your database queries (Doctrine, Eloquent, Elasticsearch etc.)
3939

4040
### Alter the Operation via a parameter
4141

deployment/kubernetes.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ If you do not have gcloud yet, install it with these command.
3333
curl https://sdk.cloud.google.com | bash
3434
```
3535

36-
#### 1. Build the PHP and Caddy Docker images and tag them
36+
#### 1. Build the PHP and PWA Docker images and tag them
3737

3838
Versioning: The 0.1.0 is the version. This value should be the same as the attribute `appVersion` in `Chart.yaml`.
3939
Infos for [Google Container pulling and pushing](https://cloud.google.com/container-registry/docs/pushing-and-pulling)
4040

4141
```console
42-
docker build -t gcr.io/test-api-platform/php:0.1.0 -t gcr.io/test-api-platform/php:latest api --target php_prod
43-
docker build -t gcr.io/test-api-platform/caddy:0.1.0 -t gcr.io/test-api-platform/caddy:latest api --target caddy_prod
42+
docker build -t gcr.io/test-api-platform/php:0.1.0 -t gcr.io/test-api-platform/php:latest api --target frankenphp_prod
4443
docker build -t gcr.io/test-api-platform/pwa:0.1.0 -t gcr.io/test-api-platform/pwa:latest pwa --target prod
4544
```
4645

@@ -55,22 +54,19 @@ docker build -t gcr.io/test-api-platform/pwa:0.1.0 -t gcr.io/test-api-platform/p
5554
```console
5655
gcloud auth configure-docker
5756
docker push gcr.io/test-api-platform/php
58-
docker push gcr.io/test-api-platform/caddy
5957
docker push gcr.io/test-api-platform/pwa
6058
```
6159

6260
Optional: push the version images:
6361

6462
```console
6563
docker push gcr.io/test-api-platform/php:0.1.0
66-
docker push gcr.io/test-api-platform/caddy:0.1.0
6764
docker push gcr.io/test-api-platform/pwa:0.1.0
6865
```
6966

7067
The result should look similar to these images.
7168

7269
![Example of Google Images - Overview](images/google-image-overview.png)
73-
![Example of Google Caddy Image - Details](images/google-image-caddy-details.png)
7470

7571
## Deploying with Helm 3
7672

@@ -104,8 +100,6 @@ helm upgrade main ./helm/api-platform --namespace=default --create-namespace --w
104100
--install \
105101
--set "php.image.repository=gcr.io/test-api-platform/php" \
106102
--set php.image.tag=latest \
107-
--set "caddy.image.repository=gcr.io/test-api-platform/caddy" \
108-
--set caddy.image.tag=latest \
109103
--set "pwa.image.repository=gcr.io/test-api-platform/pwa" \
110104
--set pwa.image.tag=latest \
111105
--set php.appSecret='!ChangeMe!' \
@@ -180,16 +174,13 @@ kubectl --namespace=bar exec -it $PHP_POD -- bin/console doctrine:schema:create
180174
helm upgrade api-platform ./helm/api-platform --namespace=default \
181175
--set "php.image.repository=gcr.io/test-api-platform/php" \
182176
--set php.image.tag=latest \
183-
--set "caddy.image.repository=gcr.io/test-api-platform/caddy" \
184-
--set caddy.image.tag=latest \
185177
--set "pwa.image.repository=gcr.io/test-api-platform/pwa" \
186178
--set pwa.image.tag=latest \
187179
--set php.appSecret='!ChangeMe!' \
188180
--set postgresql.postgresqlPassword='!ChangeMe!' \
189181
--set postgresql.persistence.enabled=true \
190182
--set "corsAllowOrigin=^https?://[a-z\]*\.mywebsite.com$" \
191183
--set php.image.pullPolicy=Always \
192-
--set caddy.image.pullPolicy=Always \
193184
--set pwa.image.pullPolicy=Always
194185
```
195186

0 commit comments

Comments
 (0)