Skip to content
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

Update Demo #327

Merged
merged 51 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
1166405
docs: add ADR
vincentchalamon Jul 4, 2023
2bd0884
chore: update API dependencies and recipes
vincentchalamon Jun 30, 2023
b9f37b1
feat: prepare schema
vincentchalamon Jun 29, 2023
562d18f
feat: add State Processors
vincentchalamon Jul 5, 2023
c7e3903
feat: restrict Download collection to current user
vincentchalamon Jul 5, 2023
6a982a5
feat: add ApiFilters
vincentchalamon Jul 5, 2023
95dddf5
feat: add UserProvider
vincentchalamon Jul 9, 2023
d6dfa46
test: add tests
vincentchalamon Jul 7, 2023
7e10c9f
fix: QA
vincentchalamon Jul 12, 2023
6eb6512
docs: update README.md
vincentchalamon Jul 13, 2023
5373dc2
chore: refacto
vincentchalamon Jul 28, 2023
a04199b
fix: CS
vincentchalamon Aug 1, 2023
572d81e
chore: update GitHub Workflows
vincentchalamon Aug 1, 2023
0f5af84
[skip ci] feat: update admin
vincentchalamon Aug 3, 2023
ae32ee6
chore: enable all tests to expose failing ones (+ improve admin and c…
vincentchalamon Aug 4, 2023
18fc2cf
test: add tests with Mercure
vincentchalamon Aug 7, 2023
b8a3a4b
test: fix tests
vincentchalamon Aug 10, 2023
c187d3e
test: add unit tests
vincentchalamon Aug 10, 2023
ea94d77
feat: configure PWA with Vulcain
vincentchalamon Aug 10, 2023
d40a61d
test: update api-platform/core dependency
vincentchalamon Aug 21, 2023
5a4940a
feat: add Souin
vincentchalamon Aug 23, 2023
b72f499
test: add e2e tests
vincentchalamon Aug 24, 2023
147e181
fix: pwa lint
vincentchalamon Aug 24, 2023
12682f0
fix: api fixtures + add database constraints
vincentchalamon Aug 25, 2023
3792fca
fix: e2e tests
vincentchalamon Aug 25, 2023
436656a
fix: ci
vincentchalamon Aug 25, 2023
1e306a4
fix: psalm does not support intersect types yet
vincentchalamon Aug 26, 2023
43c99a2
fix: ci
vincentchalamon Aug 27, 2023
746006c
fix: e2e tests
vincentchalamon Sep 7, 2023
af07c51
feat: force logout from OIDC on signOut
vincentchalamon Sep 7, 2023
888dedb
feat: customize OIDC login page
vincentchalamon Sep 7, 2023
47997dd
feat: update @api-platform/admin
vincentchalamon Sep 7, 2023
1e8a208
fix: deploy
vincentchalamon Sep 7, 2023
ceaaf60
Update .github/workflows/deploy.yml
vincentchalamon Sep 8, 2023
25e4316
fix: remove Souin cache (waiting for fix)
vincentchalamon Sep 11, 2023
6fc4de3
Update api/src/Serializer/BookNormalizer.php
vincentchalamon Sep 11, 2023
0e9abd6
chore: remove useless comments in repositories
vincentchalamon Sep 11, 2023
7f04251
chore: add api_platform formats configuration
vincentchalamon Sep 11, 2023
dcee453
feat: redirect to /books on logout
vincentchalamon Sep 11, 2023
6de2309
feat: improve review form + admin security
vincentchalamon Sep 11, 2023
35f57df
fix: ci
vincentchalamon Sep 11, 2023
d95f4a7
feat: customize show button on admin book edit
vincentchalamon Sep 18, 2023
37633de
chore: update dependencies
vincentchalamon Sep 18, 2023
a57e37f
chore: disable caddy cache on helm chart
vincentchalamon Sep 18, 2023
219b99a
fix: fix tests
vincentchalamon Sep 18, 2023
f197815
debug API Platform dev-main
vincentchalamon Sep 19, 2023
2dee6a3
chore: use api-platform/core code for Mercure assertions
vincentchalamon Sep 19, 2023
918e574
chore: declare OIDC_SERVER_URL_INTERNAL env var
vincentchalamon Sep 19, 2023
4e21281
fix tests
vincentchalamon Sep 19, 2023
cfe2c94
chore: run @write e2e tests even if @read ones fail
vincentchalamon Sep 20, 2023
ee60e01
fix: e2e tests
vincentchalamon Sep 20, 2023
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: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ indent_size = 2

[*.json]
indent_style = space
indent_size = 2
indent_size = 4

[*.md]
trim_trailing_whitespace = false
Expand Down
168 changes: 0 additions & 168 deletions .github/workflows/build.yml

This file was deleted.

78 changes: 67 additions & 11 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,73 @@ jobs:
build:
name: Build
if: ${{ github.repository == 'api-platform/demo' && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'deploy')) }}
uses: ./.github/workflows/build.yml
with:
tags: |
type=raw,value=${{ github.sha }},priority=999
type=raw,value=latest,enable={{is_default_branch}},priority=900
push: true
gke-cluster: api-platform-demo
gke-zone: europe-west1-c
secrets:
gke-credentials: ${{ secrets.GKE_SA_KEY }}
gke-project: ${{ secrets.GKE_PROJECT }}
runs-on: ubuntu-latest
env:
PHP_DOCKER_IMAGE: eu.gcr.io/${{ secrets.GKE_PROJECT }}/php:${{ github.sha }}
PWA_DOCKER_IMAGE: eu.gcr.io/${{ secrets.GKE_PROJECT }}/pwa:${{ github.sha }}
CADDY_DOCKER_IMAGE: eu.gcr.io/${{ secrets.GKE_PROJECT }}/caddy:${{ github.sha }}
KEYCLOAK_DOCKER_IMAGE: eu.gcr.io/${{ secrets.GKE_PROJECT }}/keycloak:${{ github.sha }}
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# gcloud does not work with Python 3.10 because "collections.Mappings" was removed in Python 3.10.
-
uses: actions/setup-python@v4
with:
python-version: 3.9.15
-
name: Auth gcloud
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GKE_SA_KEY }}
-
name: Setup gcloud
uses: google-github-actions/setup-gcloud@v1
with:
project_id: ${{ secrets.GKE_PROJECT }}
-
name: Configure gcloud
run: |
gcloud --quiet auth configure-docker
gcloud container clusters get-credentials api-platform-demo --zone europe-west1-c
-
name: Build Docker images
uses: docker/bake-action@v3
with:
# push and load may not be set together
# must push manually in a next step
pull: true
load: true
files: |
docker-compose.yml
docker-compose.prod.yml
set: |
*.cache-from=type=gha,scope=${{github.ref}}
*.cache-from=type=gha,scope=refs/heads/main
*.cache-to=type=gha,scope=${{github.ref}},mode=max
-
name: Docker push
run: |
docker push $PHP_DOCKER_IMAGE
docker push $PWA_DOCKER_IMAGE
docker push $CADDY_DOCKER_IMAGE
docker push $KEYCLOAK_DOCKER_IMAGE
-
name: Docker tag and push latest
if: github.event_name == 'push'
run: |
docker tag $PHP_DOCKER_IMAGE eu.gcr.io/${{ secrets.GKE_PROJECT }}/php:latest
docker tag $PWA_DOCKER_IMAGE eu.gcr.io/${{ secrets.GKE_PROJECT }}/pwa:latest
docker tag $CADDY_DOCKER_IMAGE eu.gcr.io/${{ secrets.GKE_PROJECT }}/caddy:latest
docker tag $KEYCLOAK_DOCKER_IMAGE eu.gcr.io/${{ secrets.GKE_PROJECT }}/keycloak:latest
docker push eu.gcr.io/${{ secrets.GKE_PROJECT }}/php:latest
docker push eu.gcr.io/${{ secrets.GKE_PROJECT }}/pwa:latest
docker push eu.gcr.io/${{ secrets.GKE_PROJECT }}/caddy:latest
docker push eu.gcr.io/${{ secrets.GKE_PROJECT }}/keycloak:latest

deploy:
name: Deploy
Expand Down
Loading
Loading