Compare commits

..

10 Commits

Author SHA1 Message Date
cedric 5bc154a46d deploy: fix port for beta
Déploiement FRONT BETA / check (push) Successful in 2m9s
Déploiement FRONT BETA / deploy (push) Successful in 21s
Vérification PR / check (pull_request) Successful in 2m0s
Vérification PR / deploy-beta (pull_request) Successful in 20s
2026-05-16 12:09:34 +04:00
cedric 6e41b18817 deploy: use secret to define port
Déploiement FRONT BETA / check (push) Successful in 2m0s
Déploiement FRONT BETA / deploy (push) Successful in 21s
2026-05-16 12:07:17 +04:00
cedric a92e83f321 deploy: add port to prod deploy
Déploiement FRONT BETA / check (push) Successful in 2m1s
Déploiement FRONT BETA / deploy (push) Successful in 20s
2026-05-16 12:02:47 +04:00
cedric b63b5db6cb deploy: add workflow for check PR
Déploiement FRONT BETA / check (push) Successful in 2m3s
Déploiement FRONT BETA / deploy (push) Successful in 20s
2026-05-16 11:29:37 +04:00
cedric a3b53d4960 deploy: prevent no app running in pm2
Déploiement FRONT BETA / check (push) Successful in 2m5s
Déploiement FRONT BETA / deploy (push) Successful in 19s
2026-05-16 11:17:25 +04:00
cedric c2cb86d27f deploy: create prod workflow
Déploiement FRONT BETA / check (push) Successful in 2m2s
Déploiement FRONT BETA / deploy (push) Successful in 20s
2026-05-16 10:48:10 +04:00
cedric cfdb19a1ad deploy: fix build
Déploiement FRONT BETA / check (push) Successful in 2m3s
Déploiement FRONT BETA / deploy (push) Successful in 19s
2026-05-16 10:30:07 +04:00
cedric 71577e476f deploy: create workflow
Déploiement FRONT BETA / build (push) Failing after 2m19s
Déploiement FRONT BETA / deploy (push) Has been skipped
2026-05-16 10:22:18 +04:00
cedric 70daeb0006 remove port in package scripts 2026-05-16 08:16:20 +04:00
cedric 53d6a9c7f0 add condition to robots.txt 2026-05-16 08:01:05 +04:00
5 changed files with 150 additions and 2 deletions
+47
View File
@@ -0,0 +1,47 @@
name: Vérification PR
run-name: Vérification PR de ${{ gitea.actor }}
on:
pull_request:
branches:
- master
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Activer Corepack (yarn)
run: corepack enable
- name: Vérifier les dépendances
run: yarn install --frozen-lockfile
deploy-beta:
needs: check
runs-on: ubuntu-latest
steps:
- name: Pré-déployer sur BETA pour test
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
cd ${{ secrets.FRONT_DEPLOY_PATH }}
git fetch origin
git checkout ${{ gitea.head.ref }}
git pull --ff-only origin ${{ gitea.head.ref }}
corepack enable
yarn install --frozen-lockfile
yarn build
pm2 describe app-beta-pawol > /dev/null 2>&1 \
&& pm2 restart app-beta-pawol \
|| pm2 start yarn --name app-beta-pawol -- start -p ${{ secrets.DEV_PORT }}
+45
View File
@@ -0,0 +1,45 @@
name: Déploiement FRONT BETA
run-name: ${{ gitea.actor }} déploie FRONT BETA
on:
push:
branches:
- dev
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Activer Corepack (yarn)
run: corepack enable
- name: Vérifier les dépendances
run: yarn install --frozen-lockfile
deploy:
needs: check
runs-on: ubuntu-latest
steps:
- name: Déployer sur le serveur
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
cd ${{ secrets.FRONT_DEPLOY_PATH }}
git pull --ff-only origin dev
corepack enable
yarn install --frozen-lockfile
yarn build
pm2 describe app-beta-pawol > /dev/null 2>&1 \
&& pm2 restart app-beta-pawol \
|| pm2 start yarn --name app-beta-pawol -- start -p ${{ secrets.DEV_PORT }}
+45
View File
@@ -0,0 +1,45 @@
name: Déploiement FRONT PROD
run-name: ${{ gitea.actor }} déploie FRONT PROD
on:
push:
branches:
- master
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Activer Corepack (yarn)
run: corepack enable
- name: Vérifier les dépendances
run: yarn install --frozen-lockfile
deploy:
needs: check
runs-on: ubuntu-latest
steps:
- name: Déployer sur le serveur
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
cd ${{ secrets.PROD_DEPLOY_PATH }}
git pull --ff-only origin master
corepack enable
yarn install --frozen-lockfile
yarn build
pm2 describe app-pawol > /dev/null 2>&1 \
&& pm2 restart app-pawol \
|| pm2 start yarn --name app-pawol -- start -p ${{ secrets.PROD_PORT }}
+11
View File
@@ -1,4 +1,15 @@
export default function robots() {
const isProduction = process.env.NEXT_PUBLIC_ENV === 'production';
if (!isProduction) {
return {
rules: {
userAgent: '*',
disallow: '/',
},
}
}
return {
rules: {
userAgent: '*',
+2 -2
View File
@@ -15,9 +15,9 @@
},
"scripts": {
"lint": "xo",
"dev": "next dev -p 3001",
"dev": "next dev",
"build": "next build",
"start": "next start -p 3001"
"start": "next start"
},
"dependencies": {
"@emotion/cache": "^11.11.0",