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

Commit

Permalink
Showing 51 changed files with 7,411 additions and 33,350 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deactivate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deactivate

on:
pull_request:
types: [ closed ]

jobs:
bury_review_env:
name: Deactivate review branch
runs-on: ubuntu-latest
steps:
- uses: SocialGouv/actions/autodevops-deactivate@v1
with:
kube-config: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}
66 changes: 66 additions & 0 deletions .github/workflows/preproduction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Review

on:
push:
branches:
- master
tags-ignore:
- v*

concurrency:
cancel-in-progress: true
group: preproduction

jobs:

##############################################################################
## BUILD AND REGISTER DOCKER IMAGES
##############################################################################
register:
name: Build & Register application
runs-on: ubuntu-latest
steps:

- name: Get project name
run: |
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
environment: preprod
project: ${{ env.project }}
imageName: fabrique/ressourcerie
token: ${{ secrets.GITHUB_TOKEN }}

##############################################################################
## GENERATE KUBERNETES MANIFESTS
##############################################################################
manifests:
name: Generate k8s manifests
runs-on: ubuntu-latest
steps:

- name: Use autodevops manifests generation
uses: SocialGouv/actions/autodevops-manifests@v1
with:
environment: preprod
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}

##############################################################################
## DEPLOY APPLICATION OVER KUBERNETES
##############################################################################
deploy:
name: Deploy application
runs-on: ubuntu-latest
needs: [register, manifests]
steps:

- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@v1
with:
environment: preprod
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
62 changes: 62 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Production

on:
push:
tags:
- v*

concurrency:
group: production
cancel-in-progress: true

jobs:

##############################################################################
## BUILD AND REGISTER DOCKER IMAGE
##############################################################################
register:
name: Build & Register application
runs-on: ubuntu-latest
steps:

- name: Get project name
run: |
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
environment: prod
project: ${{ env.project }}
imageName: fabrique/ressourcerie
token: ${{ secrets.GITHUB_TOKEN }}

##############################################################################
## DEPLOY PRODUCTION APPLICATION
##############################################################################
deploy:
name: Deploy application
runs-on: ubuntu-latest
needs: [register]
environment:
name: production
url: https://ressourcerie.fabrique.social.gouv.fr
steps:

- name: Use autodevops manifests generation
uses: SocialGouv/actions/autodevops-manifests@v1
with:
environment: prod
productionNamespace: fabrique
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}
env:
NODE_OPTIONS: '--max_old_space_size=4096'

- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@v1
with:
environment: prod
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
32 changes: 0 additions & 32 deletions .github/workflows/publish-image.yml

This file was deleted.

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

on:
workflow_dispatch:
push:
branches: [master, alpha, beta, next]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:

- uses: SocialGouv/actions/autodevops-release@v1
with:
author-name: ${{ secrets.SOCIALGROOVYBOT_NAME }}
author-email: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
github-token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
68 changes: 68 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Review

on:
push:
branches-ignore:
- master
tags-ignore:
- v*

concurrency:
cancel-in-progress: true
group: review-${{ github.ref }}

jobs:

##############################################################################
## BUILD AND REGISTER DOCKER IMAGES
##############################################################################
register:
name: Build & Register application
runs-on: ubuntu-latest
steps:

- name: Get project name
run: |
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
environment: dev
imageName: fabrique/ressourcerie
project: ${{ env.project }}
token: ${{ secrets.GITHUB_TOKEN }}

##############################################################################
## GENERATE KUBERNETES MANIFESTS
##############################################################################
manifests:
name: Generate k8s manifests
runs-on: ubuntu-latest
steps:

- name: Use autodevops manifests generation
uses: SocialGouv/actions/autodevops-manifests@v1
with:
environment: dev
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}
env:
NODE_OPTIONS: '--max_old_space_size=4096'

##############################################################################
## DEPLOY APPLICATION OVER KUBERNETES
##############################################################################
deploy:
name: Deploy application
runs-on: ubuntu-latest
needs: [register, manifests]
steps:

- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@v1
with:
environment: dev
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
39 changes: 0 additions & 39 deletions .next/build-manifest.json

This file was deleted.

Binary file removed .next/cache/webpack/client-development/0.pack
Binary file not shown.
Binary file removed .next/cache/webpack/client-development/1.pack
Binary file not shown.
Binary file removed .next/cache/webpack/client-development/2.pack
Binary file not shown.
Binary file removed .next/cache/webpack/client-development/3.pack
Binary file not shown.
Binary file removed .next/cache/webpack/client-development/4.pack
Binary file not shown.
Binary file removed .next/cache/webpack/client-development/index.pack
Binary file not shown.
Binary file not shown.
Binary file removed .next/cache/webpack/server-development/0.pack
Binary file not shown.
Binary file removed .next/cache/webpack/server-development/1.pack
Binary file not shown.
Binary file removed .next/cache/webpack/server-development/2.pack
Binary file not shown.
Binary file removed .next/cache/webpack/server-development/3.pack
Binary file not shown.
Binary file removed .next/cache/webpack/server-development/4.pack
Binary file not shown.
Binary file removed .next/cache/webpack/server-development/index.pack
Binary file not shown.
Binary file not shown.
8 changes: 0 additions & 8 deletions .next/react-loadable-manifest.json

This file was deleted.

7 changes: 0 additions & 7 deletions .next/server/pages-manifest.json

This file was deleted.

650 changes: 0 additions & 650 deletions .next/server/pages/404.js

This file was deleted.

120 changes: 0 additions & 120 deletions .next/server/pages/_app.js

This file was deleted.

189 changes: 0 additions & 189 deletions .next/server/pages/_document.js

This file was deleted.

650 changes: 0 additions & 650 deletions .next/server/pages/_error.js

This file was deleted.

1,799 changes: 0 additions & 1,799 deletions .next/server/pages/index.js

This file was deleted.

168 changes: 0 additions & 168 deletions .next/server/webpack-runtime.js

This file was deleted.

92 changes: 0 additions & 92 deletions .next/static/chunks/amp.js

This file was deleted.

1,403 changes: 0 additions & 1,403 deletions .next/static/chunks/main.js

This file was deleted.

22 changes: 0 additions & 22 deletions .next/static/chunks/node_modules_next_dist_client_dev_noop_js.js

This file was deleted.

1,112 changes: 0 additions & 1,112 deletions .next/static/chunks/pages/404.js

This file was deleted.

275 changes: 0 additions & 275 deletions .next/static/chunks/pages/_app.js

This file was deleted.

503 changes: 0 additions & 503 deletions .next/static/chunks/pages/_error.js

This file was deleted.

1,409 changes: 0 additions & 1,409 deletions .next/static/chunks/pages/index.js

This file was deleted.

1 change: 0 additions & 1 deletion .next/static/chunks/polyfills.js

This file was deleted.

62 changes: 0 additions & 62 deletions .next/static/chunks/react-refresh.js

This file was deleted.

1,291 changes: 0 additions & 1,291 deletions .next/static/chunks/webpack.js

This file was deleted.

1 change: 0 additions & 1 deletion .next/static/development/_buildManifest.js

This file was deleted.

1 change: 0 additions & 1 deletion .next/static/development/_ssgManifest.js

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions .next/static/webpack/webpack.36eb12cb0edb5715885a.hot-update.js

This file was deleted.

31 changes: 0 additions & 31 deletions .next/static/webpack/webpack.87155128f0b3014c0287.hot-update.js

This file was deleted.

7 changes: 7 additions & 0 deletions .socialgouv/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "app",
"registry": "ghcr",
"project": "fabrique",
"name": "ressourcerie",
"subdomain": "ressourcerie"
}
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 1.0.0 (2021-12-13)


### Bug Fixes

* **workflows:** Add basic workflows and socialgouv config ([#3](https://github.com/SocialGouv/ressourcerie/issues/3)) ([d48157d](https://github.com/SocialGouv/ressourcerie/commit/d48157dd5e6376464917ad7fa001a9ffef311ba1))
* add missing folders gitignore ([c6aeb21](https://github.com/SocialGouv/ressourcerie/commit/c6aeb218472026f693bfb0c2cd85ea190d6f7f13))


### Features

* article IA 1/2 ([cff4861](https://github.com/SocialGouv/ressourcerie/commit/cff4861ab96844a412583c1bda38b7f9abe39a4d))
* article publicodes ([6fb6555](https://github.com/SocialGouv/ressourcerie/commit/6fb65555ed03b257066461fb795dabb5eaffbe03))

# [1.0.0-alpha.5](https://github.com/SocialGouv/ressourcerie/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2021-12-10)


### Bug Fixes

* Bump version ([5bd998e](https://github.com/SocialGouv/ressourcerie/commit/5bd998e801cd45a24f0660a5b2be1329e784baec))

# [1.0.0-alpha.4](https://github.com/SocialGouv/ressourcerie/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2021-12-09)


### Bug Fixes

* add NODE_OPTIONS ([2e81b13](https://github.com/SocialGouv/ressourcerie/commit/2e81b132580e815ebe27ee2db3096a8d8aa9e5f1))

# [1.0.0-alpha.3](https://github.com/SocialGouv/ressourcerie/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2021-12-09)


### Bug Fixes

* Set subdomain ([3fe93e6](https://github.com/SocialGouv/ressourcerie/commit/3fe93e61cfad3f0898a1ede3dc9dcda9d3cf2612))

# [1.0.0-alpha.2](https://github.com/SocialGouv/ressourcerie/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2021-12-09)


### Bug Fixes

* Set production namespace ([b444b28](https://github.com/SocialGouv/ressourcerie/commit/b444b283f26407713940b6055b93ac2dc2700da7))

# 1.0.0-alpha.1 (2021-12-09)


### Bug Fixes

* add missing folders gitignore ([c6aeb21](https://github.com/SocialGouv/ressourcerie/commit/c6aeb218472026f693bfb0c2cd85ea190d6f7f13))
23,463 changes: 0 additions & 23,463 deletions package-lock.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "ressourcerie",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/NumericiteDev/ressourcerie",
"repository": "https://github.com/SocialGouv/ressourcerie",
"license": "AGPL-3.0-or-later",
"node": "=16.4",
"private": true,
"scripts": {
"sitemap": "node node-scripts/saveUrlList.js && node ./node_modules/sitemap/dist/cli.js < ./public/url-list.txt > ./public/sitemap.xml",
"dev": "NODE_ENV=development next",
2 changes: 2 additions & 0 deletions pages/healthz.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const Page = () => <h1>It Works!</h1>
export default Page
7,122 changes: 7,122 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 86f0c15

Please sign in to comment.