Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
51 changes: 0 additions & 51 deletions .github/workflows/build.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Mirror to GitLab

# Le depot GitLab de la chaine secondaire est un miroir de celui-ci. Chaque
# merge sur main declenche le pipeline GitLab qui va rapatrier le commit ;
# c'est ensuite .gitlab-ci-dso.yml qui construit l'image et ArgoCD qui deploie.
on:
push:
branches:
- main
workflow_dispatch:

# Deux merges rapproches ne doivent pas lancer deux mirrorings concurrents.
# Celui en cours n'est pas annule : il termine son travail.
concurrency:
group: gitlab-mirror
cancel-in-progress: false

permissions:
contents: read

jobs:
trigger:
name: Trigger GitLab mirror pipeline
runs-on: ubuntu-latest
steps:
- name: Trigger mirror pipeline
env:
TRIGGER_URL: ${{ secrets.GITLAB_MIRROR_TRIGGER_URL }}
TRIGGER_TOKEN: ${{ secrets.GITLAB_MIRROR_TRIGGER_TOKEN }}
run: |
: "${TRIGGER_URL:?secret GITLAB_MIRROR_TRIGGER_URL manquant}"
: "${TRIGGER_TOKEN:?secret GITLAB_MIRROR_TRIGGER_TOKEN manquant}"

curl --fail-with-body -sS \
--header "PRIVATE-TOKEN: ${TRIGGER_TOKEN}" \
-X POST \
-F token="${TRIGGER_TOKEN}" \
-F ref=main \
-F "variables[GIT_MIRROR_PROJECT_ID]=31" \
"${TRIGGER_URL}"
66 changes: 0 additions & 66 deletions .github/workflows/release.yml

This file was deleted.

10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@ on:
required: true
type: string
default: "22"
PNPM_VERSION:
description: Pnpm version used to run build tests
required: true
type: string
default: "10"

env:
NODE_VERSION: "22"
PNPM_VERSION: "10"

jobs:
lint:
Expand All @@ -38,7 +32,6 @@ jobs:
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: "${{ inputs.PNPM_VERSION || env.PNPM_VERSION }}"
run_install: false

- name: Setup Node.js
Expand All @@ -63,5 +56,8 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Lint sources
run: pnpm lint

- name: Test application build
run: pnpm run build
153 changes: 150 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ Temporary Items

### Node ###
# Logs
logs
# Ancre a la racine : un "logs" non ancre masquerait tout dossier de ce nom
# n'importe ou dans l'arbre, y compris les pages docs/guide/logs.
/logs
*.log
npm-debug.log*
yarn-debug.log*
Expand Down Expand Up @@ -221,5 +223,150 @@ $RECYCLE.BIN/

# End of https://www.toptal.com/developers/gitignore/api/node,macos,windows,linux

!docs/guide/logs
!docs/public/img/guide/logs
### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr

# Sonarlint plugin
# https://plugins.jetbrains.com/plugin/7973-sonarlint
.idea/**/sonarlint/

# SonarQube Plugin
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
.idea/**/sonarIssues.xml

# Markdown Navigator plugin
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
.idea/**/markdown-navigator.xml
.idea/**/markdown-navigator-enh.xml
.idea/**/markdown-navigator/

# Cache file creation bug
# See https://youtrack.jetbrains.com/issue/JBR-2257
.idea/$CACHE_FILE$

# CodeStream plugin
# https://plugins.jetbrains.com/plugin/12206-codestream
.idea/codestream.xml

# Azure Toolkit for IntelliJ plugin
# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij
.idea/**/azureSettings.xml

.idea

### Secrets ###
# Le depot est public : ces motifs evitent qu'un `git add .` malheureux y
# publie des identifiants. Aucun fichier suivi ne correspond a ces motifs.

# Cles privees et certificats
*.pem
*.key
*.p12
*.pfx
*.jks
*.keystore
id_rsa
id_ecdsa
id_ed25519

# Acces aux clusters et aux registres
kubeconfig
*.kubeconfig
.kube/config
.docker/config.json

# Fichiers de secrets applicatifs
secrets.yaml
secrets.yml
secrets.json
*.secrets.yaml
*.secrets.yml

# Identifiants d'outils
.netrc
.npmrc
.pypirc
17 changes: 16 additions & 1 deletion .gitlab-ci-dso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,29 @@ default:
image: alpine:latest

variables:
TAG: "${CI_COMMIT_REF_SLUG}"
DOCKERFILE: Dockerfile
REGISTRY_URL: "${IMAGE_REPOSITORY}"

# le build et install pnpm sont déjà faits dans le dockerfile, donc pas de stage de test.
stages:
- read-secret
- docker-build

# Le tag de l'image est la version de la console, declaree en appVersion dans
# helm/Chart.yaml.
set-version:
stage: .pre
image: alpine:latest
script:
- |
APP_VERSION=$(sed -n 's/^appVersion:[[:space:]]*\([^[:space:]#]*\).*/\1/p' helm/Chart.yaml | tr -d '"')
test -n "${APP_VERSION}"
echo "TAG=${APP_VERSION}" > version.env
cat version.env
artifacts:
reports:
dotenv: version.env

read_secret:
stage: read-secret
extends:
Expand Down
Loading
Loading