feat(frontend): add DSFR to frontend #11139
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 👀 Review | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| - "!master" | |
| - "!main" | |
| - "!feat-**" | |
| - "!fix-**" | |
| - "!sre/**" | |
| - "!chore/**" | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }} | |
| jobs: | |
| build-backend: | |
| environment: build-review | |
| outputs: | |
| tags: ${{ steps.meta.outputs.tags }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⏬ Checkout code repository | |
| uses: actions/checkout@v4 | |
| - name: 📌 Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ vars.REGISTRY_URL }}/${{ vars.PROJECT_NAME }}/${{ github.event.repository.name }}/backend | |
| tags: | | |
| type=sha,prefix=persist-,format=long,enable=${{ | |
| github.ref_name == 'dev' || | |
| github.ref_name == 'develop' || | |
| github.ref_name == 'preprod' || | |
| github.ref_name == 'main' || | |
| github.ref_name == 'master' | |
| }},priority=840 | |
| type=sha,prefix=sha-,format=long,priority=890 | |
| type=ref,event=branch,priority=600 | |
| - name: Env | |
| id: env | |
| uses: socialgouv/kontinuous/.github/actions/env@v1 | |
| with: | |
| subdomain: api,admin,mon | |
| - name: 📦 Build and push Docker image for backend | |
| uses: socialgouv/workflows/actions/buildkit@v1 | |
| with: | |
| context: "." | |
| dockerfile: "packages/backend/Dockerfile" | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| registry: "${{ vars.REGISTRY_URL }}" | |
| registry-username: "${{ secrets.REGISTRY_USERNAME }}" | |
| registry-password: "${{ secrets.REGISTRY_PASSWORD }}" | |
| buildkit-cert-ca: "${{ secrets.BUILDKIT_CERT_CA }}" | |
| buildkit-cert: "${{ secrets.BUILDKIT_CERT }}" | |
| buildkit-cert-key: "${{ secrets.BUILDKIT_CERT_KEY }}" | |
| buildkit-svc-count: ${{ vars.BUILDKIT_SVC_COUNT }} | |
| buildkit-daemon-address: ${{ vars.BUILDKIT_DAEMON_ADDRESS }} | |
| build-args: | | |
| DOMIFA_ENV_ID=dev | |
| DOMIFA_BACKEND_URL=https://${{ steps.env.outputs.subdomain_api }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_PORTAIL_ADMINS_URL=https://${{ steps.env.outputs.subdomain_admin }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_PORTAIL_USAGERS_URL=https://${{ steps.env.outputs.subdomain_mon }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_FRONTEND_URL=https://${{ steps.env.outputs.subdomain }}.ovh.fabrique.social.gouv.fr/ | |
| build-frontend: | |
| environment: build-review | |
| outputs: | |
| tags: ${{ steps.meta.outputs.tags }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⏬ Checkout code repository | |
| uses: actions/checkout@v4 | |
| - name: 📌 Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ vars.REGISTRY_URL }}/${{ vars.PROJECT_NAME }}/${{ github.event.repository.name }}/frontend | |
| tags: | | |
| type=sha,prefix=persist-,format=long,enable=${{ | |
| github.ref_name == 'dev' || | |
| github.ref_name == 'develop' || | |
| github.ref_name == 'preprod' || | |
| github.ref_name == 'main' || | |
| github.ref_name == 'master' | |
| }},priority=840 | |
| type=sha,prefix=sha-,format=long,priority=890 | |
| type=ref,event=branch,priority=600 | |
| - name: Env | |
| id: env | |
| uses: socialgouv/kontinuous/.github/actions/env@v1 | |
| with: | |
| subdomain: api,admin,mon | |
| - name: 📦 Build and push Docker image for frontend | |
| uses: socialgouv/workflows/actions/buildkit@v1 | |
| with: | |
| context: "." | |
| dockerfile: "packages/frontend/Dockerfile" | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| registry: "${{ vars.REGISTRY_URL }}" | |
| registry-username: "${{ secrets.REGISTRY_USERNAME }}" | |
| registry-password: "${{ secrets.REGISTRY_PASSWORD }}" | |
| buildkit-cert-ca: "${{ secrets.BUILDKIT_CERT_CA }}" | |
| buildkit-cert: "${{ secrets.BUILDKIT_CERT }}" | |
| buildkit-cert-key: "${{ secrets.BUILDKIT_CERT_KEY }}" | |
| buildkit-svc-count: ${{ vars.BUILDKIT_SVC_COUNT }} | |
| buildkit-daemon-address: ${{ vars.BUILDKIT_DAEMON_ADDRESS }} | |
| build-args: | | |
| DOMIFA_ENV_ID=dev | |
| DOMIFA_BACKEND_URL=https://${{ steps.env.outputs.subdomain_api }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_PORTAIL_ADMINS_URL=https://${{ steps.env.outputs.subdomain_admin }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_PORTAIL_USAGERS_URL=https://${{ steps.env.outputs.subdomain_mon }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_FRONTEND_URL=https://${{ steps.env.outputs.subdomain }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_FRONTEND_META_ROBOTS=noindex,nofollow | |
| DOMIFA_SENTRY_DSN_FRONTEND=https://f06e9e7c06ee8a2bae5318db1e60ffc7@sentry2.fabrique.social.gouv.fr/3 | |
| build-portail-admins: | |
| environment: build-review | |
| outputs: | |
| tags: ${{ steps.meta.outputs.tags }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⏬ Checkout code repository | |
| uses: actions/checkout@v4 | |
| - name: 📌 Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ vars.REGISTRY_URL }}/${{ vars.PROJECT_NAME }}/${{ github.event.repository.name }}/portail-admins | |
| tags: | | |
| type=sha,prefix=persist-,format=long,enable=${{ | |
| github.ref_name == 'dev' || | |
| github.ref_name == 'develop' || | |
| github.ref_name == 'preprod' || | |
| github.ref_name == 'main' || | |
| github.ref_name == 'master' | |
| }},priority=840 | |
| type=sha,prefix=sha-,format=long,priority=890 | |
| type=ref,event=branch,priority=600 | |
| - name: Env | |
| id: env | |
| uses: socialgouv/kontinuous/.github/actions/env@v1 | |
| with: | |
| subdomain: api | |
| - name: 📦 Build and push Docker image for portail-admins | |
| uses: socialgouv/workflows/actions/buildkit@v1 | |
| with: | |
| context: "." | |
| dockerfile: "packages/portail-admins/Dockerfile" | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| registry: "${{ vars.REGISTRY_URL }}" | |
| registry-username: "${{ secrets.REGISTRY_USERNAME }}" | |
| registry-password: "${{ secrets.REGISTRY_PASSWORD }}" | |
| buildkit-cert-ca: "${{ secrets.BUILDKIT_CERT_CA }}" | |
| buildkit-cert: "${{ secrets.BUILDKIT_CERT }}" | |
| buildkit-cert-key: "${{ secrets.BUILDKIT_CERT_KEY }}" | |
| buildkit-svc-count: ${{ vars.BUILDKIT_SVC_COUNT }} | |
| buildkit-daemon-address: ${{ vars.BUILDKIT_DAEMON_ADDRESS }} | |
| build-args: | | |
| DOMIFA_ENV_ID=dev | |
| DOMIFA_BACKEND_URL=https://${{ steps.env.outputs.subdomain_api }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_FRONTEND_URL=https://${{ steps.env.outputs.subdomain }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_SENTRY_DSN_PORTAIL_ADMIN=https://dc9ede612eba2fcb6abf404bd44b9b3b@sentry2.fabrique.social.gouv.fr/11 | |
| build-portail-usagers: | |
| environment: build-review | |
| outputs: | |
| tags: ${{ steps.meta.outputs.tags }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⏬ Checkout code repository | |
| uses: actions/checkout@v4 | |
| - name: 📌 Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ vars.REGISTRY_URL }}/${{ vars.PROJECT_NAME }}/${{ github.event.repository.name }}/portail-usagers | |
| tags: | | |
| type=sha,prefix=persist-,format=long,enable=${{ | |
| github.ref_name == 'dev' || | |
| github.ref_name == 'develop' || | |
| github.ref_name == 'preprod' || | |
| github.ref_name == 'main' || | |
| github.ref_name == 'master' | |
| }},priority=840 | |
| type=sha,prefix=sha-,format=long,priority=890 | |
| type=ref,event=branch,priority=600 | |
| - name: Env | |
| id: env | |
| uses: socialgouv/kontinuous/.github/actions/env@v1 | |
| with: | |
| subdomain: api | |
| - name: 📦 Build and push Docker image for portail-usagers | |
| uses: socialgouv/workflows/actions/buildkit@v1 | |
| with: | |
| context: "." | |
| dockerfile: "packages/portail-usagers/Dockerfile" | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| registry: "${{ vars.REGISTRY_URL }}" | |
| registry-username: "${{ secrets.REGISTRY_USERNAME }}" | |
| registry-password: "${{ secrets.REGISTRY_PASSWORD }}" | |
| buildkit-cert-ca: "${{ secrets.BUILDKIT_CERT_CA }}" | |
| buildkit-cert: "${{ secrets.BUILDKIT_CERT }}" | |
| buildkit-cert-key: "${{ secrets.BUILDKIT_CERT_KEY }}" | |
| buildkit-svc-count: ${{ vars.BUILDKIT_SVC_COUNT }} | |
| buildkit-daemon-address: ${{ vars.BUILDKIT_DAEMON_ADDRESS }} | |
| build-args: | | |
| DOMIFA_ENV_ID=dev | |
| DOMIFA_BACKEND_URL=https://${{ steps.env.outputs.subdomain_api }}.ovh.fabrique.social.gouv.fr/ | |
| DOMIFA_SENTRY_DSN_PORTAIL=https://69e6fc82a5ef491392aba6c58303af18@sentry2.fabrique.social.gouv.fr/5 | |
| DOMIFA_FRONTEND_META_ROBOTS=noindex,nofollow | |
| kontinuous: | |
| needs: | |
| [ | |
| build-backend, | |
| build-frontend, | |
| build-portail-admins, | |
| build-portail-usagers, | |
| ] | |
| name: "Deploy on Kubernetes 🐳" | |
| uses: socialgouv/workflows/.github/workflows/use-ks-gh-review-atlas.yaml@v1 | |
| secrets: inherit |