Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

feat: local deployment #117

Draft
wants to merge 90 commits into
base: hasura
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
c5d64c4
chore: more CodeQL
Jun 7, 2022
8c137a8
Merge pull request #70 from SocialGouv/revolunet-patch-2
maxgfr Jun 8, 2022
18b0bb4
feat(auth): add authentification with keycloak (#50)
maxgfr Jun 17, 2022
ea1d842
chore(release): 1.11.0
SocialGroovyBot Jun 17, 2022
53b3c9f
chore(ci): fix preprod triggers
Jun 17, 2022
5f1c22d
chore(ci): fix preprod workflow
Jun 17, 2022
8ef501c
chore(ci): fix prod workflow
Jun 17, 2022
4db494e
chore(ci): disable review on main
Jun 17, 2022
650315a
fix: release
Jun 17, 2022
cdbfb51
chore(release): 1.11.1
SocialGroovyBot Jun 17, 2022
0d1eef3
fix(ci): fix prod secrets
Jun 17, 2022
ca59cbd
chore(release): 1.11.2
SocialGroovyBot Jun 17, 2022
9faa924
fix(k8s): use FC integration secrets
Jun 20, 2022
063d606
chore(release): 1.11.3
SocialGroovyBot Jun 20, 2022
782446f
fix: redeploy
Jul 7, 2022
160de17
docs: add keycloak-dsfr link
Jul 7, 2022
87fcf36
chore(release): 1.11.4
SocialGroovyBot Jul 7, 2022
8465982
feat(main): add talisman pre-commit hook (#86)
Jul 27, 2022
5d4de7d
chore(release): 1.12.0
SocialGroovyBot Jul 27, 2022
e9a7090
feat: hasura (#87)
Aug 16, 2022
46383fa
chore(release): 1.13.0
SocialGroovyBot Aug 16, 2022
fc7edd1
fix(ci): hasura needs build-hasura
Aug 16, 2022
13c253d
chore(release): 1.13.1
SocialGroovyBot Aug 16, 2022
7a07b3f
fix(ci): build-hasura dont need nuid-app
Aug 16, 2022
36edee0
chore(release): 1.13.2
SocialGroovyBot Aug 16, 2022
c5b87bd
fix(k8s): fix preprod/prod keycloak logins
Aug 16, 2022
e459c72
chore(release): 1.13.3
SocialGroovyBot Aug 16, 2022
9230600
fix(k8s): preprod keycloak secret
Aug 17, 2022
9bddfe6
chore(release): 1.13.4
SocialGroovyBot Aug 17, 2022
74c291f
fix(deps): update dependency next-auth to v4.10.3 [security] (#82)
renovate[bot] Aug 17, 2022
c6749e4
chore(deps): update all dependencies (#60)
renovate[bot] Aug 17, 2022
5a7087a
chore(release): 1.13.5
SocialGroovyBot Aug 17, 2022
971a01d
fix(ci): prod KEYCLOAK_CLIENT_SECRET
Aug 17, 2022
21aab12
chore(release): 1.13.6
SocialGroovyBot Aug 17, 2022
6bef50b
fix: fabrique/jobs to contrib/jobs (#91)
devthejo Aug 22, 2022
c60f596
chore(release): 1.13.7
SocialGroovyBot Aug 22, 2022
ec608fe
fix: up kontinuous syntax (#92)
devthejo Aug 22, 2022
e8de310
chore(release): 1.13.8
SocialGroovyBot Aug 22, 2022
9573d2d
fix: up kontinuous explicit condition
devthejo Aug 29, 2022
6b2984c
chore(release): 1.13.9
SocialGroovyBot Aug 29, 2022
fcdb8b7
chore: up kontinuous syntax clean up (#96)
devthejo Sep 2, 2022
4b09000
chore: up kontinuous workflows (#97)
devthejo Sep 2, 2022
8842797
chore: up kontinuous deactivate (#98)
devthejo Sep 2, 2022
439f13d
feat: add sentry example triggers (#103)
Sep 29, 2022
3d9f2cb
chore(release): 1.14.0
SocialGroovyBot Sep 29, 2022
49df976
chore(deps): update all non-major dev dependencies (#61)
renovate[bot] Sep 29, 2022
aedfb14
chore: release without bot token (#101)
matmut7 Oct 4, 2022
05abc20
fix: dummy
Oct 4, 2022
86fa77a
fix: test local releaserc (#107)
Oct 4, 2022
7bffe92
chore(release): 1.14.1
semantic-release-bot Oct 4, 2022
b5b7b89
wip
Oct 4, 2022
24b89bd
fix: dummy
Oct 4, 2022
41e0350
fix: test (#108)
Oct 4, 2022
a1d562b
chore(release): 1.14.1
semantic-release-bot Oct 4, 2022
b72f6d9
fix: dummy (#109)
Oct 4, 2022
2e04f9a
chore(release): 1.14.1
semantic-release-bot Oct 4, 2022
68d5401
fix: dummy2 (#110)
Oct 4, 2022
2e64b2b
chore(release): 1.14.2
semantic-release-bot Oct 4, 2022
3ae8bc2
fix(release): remove type close and pull_request (#111)
maxgfr Oct 6, 2022
a6d4847
fix(release): `main` qui trigger la release (#113)
maxgfr Oct 6, 2022
d5fc203
fix: disable release wkflw condition
Oct 6, 2022
6e7ca85
chore(release): 1.14.3
semantic-release-bot Oct 6, 2022
4da9c67
fix(ci): allow prod deploys
Oct 6, 2022
8e5cea3
chore(release): 1.14.4
semantic-release-bot Oct 6, 2022
6219c1f
fix(ci): optimize dockerfile and lint tsc only on staged files (#114)
maxgfr Oct 11, 2022
7bffae0
chore(release): 1.14.5
semantic-release-bot Oct 11, 2022
4cd3fd9
wip
Oct 21, 2022
10e8496
reduce devDeps
Oct 21, 2022
78fb108
disablelint
Oct 21, 2022
ded445a
Revert "reduce devDeps"
Oct 21, 2022
3ccdced
Revert "disablelint"
Oct 21, 2022
99fa434
restore pages
Oct 21, 2022
4943eee
lighter dev deps
Oct 21, 2022
3f52913
disableeslint
Oct 21, 2022
dbc08cf
disableeslint
Oct 21, 2022
7d3581d
disabletslint
Oct 21, 2022
3ffbb0f
disabletslint
Oct 21, 2022
aaf0cac
Revert "lighter dev deps"
Oct 21, 2022
f92679a
restore
Oct 21, 2022
3cba887
test
Oct 21, 2022
f78fe7f
fix
Oct 22, 2022
b3156d7
fix(release): remove unused releaserc and --no-ci flag (#118)
matmut7 Oct 25, 2022
12db468
fix: dummy
Oct 27, 2022
7cbff1b
chore(release): 1.14.6
semantic-release-bot Oct 27, 2022
1dc17fe
tmp
Oct 28, 2022
c6c21a5
fixes
Nov 15, 2022
d609107
cleanup
Nov 15, 2022
4955091
Merge branch 'main' into local
Nov 15, 2022
e2a7806
use harbor-dev
Nov 15, 2022
57ff1e3
use-harbor-dev
Nov 15, 2022
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
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ Dockerfile
node_modules
npm-debug.log
README.md
.next
.next
.kube-workflow
.github
.git
.DS_Store
14 changes: 9 additions & 5 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
NEXT_TELEMETRY_DISABLED=1
NEXT_PUBLIC_SITE_URL=""
NEXT_PUBLIC_SENTRY_DSN=""
NEXT_PUBLIC_SENTRY_ENV=""
NEXT_PUBLIC_SENTRY_DSN="https://[email protected]/68"
NEXT_PUBLIC_SENTRY_ENV="dev"
NEXT_PUBLIC_MATOMO_URL=""
NEXT_PUBLIC_MATOMO_SITE_ID=""
NEXT_PUBLIC_APP_REPOSITORY_URL="https://github.com/SocialGouv/template"
NEXT_PUBLIC_APP_REPOSITORY_URL="https://github.com/SocialGouv/template"
KEYCLOAK_URL="http://localhost:8080/realms/app-realm"
KEYCLOAK_CLIENT_SECRET="**********"
KEYCLOAK_CLIENT_ID="app-client"
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="A+EQqudlGhqTLDnBbCvohHBfbhUjTXAbZYy1NKsSsys="
NEXT_PUBLIC_HASURA_GRAPHQL_ENDPOINT_URL="http://localhost:8082/v1/graphql"
4 changes: 1 addition & 3 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
NEXT_TELEMETRY_DISABLED=1
NEXT_PUBLIC_SITE_URL="https://template.fabrique.social.gouv.fr/"
NEXT_PUBLIC_SENTRY_DSN="https://[email protected]/68"
NEXT_PUBLIC_SENTRY_ENV="production"
NEXT_PUBLIC_MATOMO_URL="https://matomo.fabrique.social.gouv.fr"
NEXT_PUBLIC_MATOMO_SITE_ID=63
NEXT_PUBLIC_APP_REPOSITORY_URL="https://github.com/SocialGouv/template"
NEXT_PUBLIC_APP_REPOSITORY_URL="https://github.com/SocialGouv/template"
4 changes: 1 addition & 3 deletions .env.staging
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
NEXT_TELEMETRY_DISABLED=1
NEXT_PUBLIC_SITE_URL="https://template.fabrique.social.gouv.fr/"
NEXT_PUBLIC_SENTRY_DSN="https://[email protected]/68"
NEXT_PUBLIC_SENTRY_ENV="development"
NEXT_PUBLIC_MATOMO_URL=""
NEXT_PUBLIC_MATOMO_SITE_ID=""
NEXT_PUBLIC_APP_REPOSITORY_URL="https://github.com/SocialGouv/template"
NEXT_PUBLIC_APP_REPOSITORY_URL="https://github.com/SocialGouv/template"
3 changes: 1 addition & 2 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Protect workflow files
.github/workflows/*.yml @socialgouv/sre
.github/CODEOWNERS @socialgouv/sre
.k8s/ @socialgouv/sre
.socialgouv/ @socialgouv/sre
.kontinuous/ @socialgouv/sre
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:

jobs:
build:
name: Build and export
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -26,6 +26,6 @@ jobs:
- name: Install dependencies
run: |
yarn install --prefer-offline --frozen-lockfile
- name: Build and export
- name: Build
run: |
yarn build:export
yarn build
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-and-quality
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/deactivate.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/kontinuous-webhook-delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Deactivate
on:
delete:

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
kontinuous:
uses: SocialGouv/kontinuous/.github/workflows/workflow-webhook.yaml@v1
secrets: inherit
14 changes: 14 additions & 0 deletions .github/workflows/kontinuous-webhook-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Deploy
on:
push:
branches:
- "**"

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
kontinuous:
uses: SocialGouv/kontinuous/.github/workflows/workflow-webhook.yaml@v1
secrets: inherit
46 changes: 0 additions & 46 deletions .github/workflows/preproduction.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/production.yml

This file was deleted.

24 changes: 17 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
name: Release

on:
workflow_dispatch:
push:
branches: [main, alpha, beta, next]
branches:
- main
workflow_dispatch:

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: SocialGouv/actions/autodevops-release@v1
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
author-name: ${{ secrets.SOCIALGROOVYBOT_NAME }}
author-email: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
github-token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
node-version: "lts/*"
- name: Install additional semantic-release plugins
run: npm i --save=false --force semantic-release @socialgouv/releaserc @semantic-release/changelog @semantic-release/git @semantic-release/npm
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --extends @socialgouv/releaserc
43 changes: 0 additions & 43 deletions .github/workflows/review.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ cypress/videos
cypress/screenshots

# Robots.txt
robots.txt
robots.txt

# Keycloak extensions deployed
*.jar.deployed
4 changes: 3 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged

yarn lint-staged
exec < /dev/tty; yarn node-talisman --githook pre-commit -i
2 changes: 2 additions & 0 deletions .kontinuous/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
env/local/templates/kubeconfig.yaml
kind/kubeconfig.yaml
Loading