diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26877bcbbaa43c8d0324d9ae84988a557a2d931b..4b29f42cbecbf3d910fac22ebc5e4a520d1cd044 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,22 +14,6 @@ build-and-test: image: node:${NODE_VERSION}-alpine script: - cd backend && npm ci && npm test - - cd frontend && npm ci && npm run build + - cd ../frontend && npm ci && npm run build coverage: '/all files\s+\|\s+(\d+\.\d+)\s+\|/' -# Build Docker images (runs after test stage passes) -docker-build: - stage: docker - image: docker:24 - services: - - docker:24-dind - variables: - DOCKER_TLS_CERTDIR: "/certs" - before_script: - - until docker info 2>/dev/null; do echo "Waiting for Docker..."; sleep 1; done - script: - - docker build -t md5-swarm-backend:ci ./backend - - docker build -t md5-swarm-worker:ci ./worker - - docker build -t md5-swarm-frontend:ci ./frontend - needs: - - build-and-test diff --git a/README.md b/README.md index ce1e0951b43a482e12e7972251d5f70e7a2a07c4..f6d55d516d362dddd428febc4a9756649cb69954 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Projet Docker Swarm – Bruteforce MD5 -![coverage](https://gitlab.com/your-group/your-project/badges/main/coverage.svg?job=build-and-test) +![coverage](https://www-apps.univ-lehavre.fr/forge/gm213204/killemd5/badges/main/coverage.svg?job=build-and-test) Ce dépôt contient une petite infrastructure Docker Swarm capable de bruteforcer des hash MD5 de manière scalable, ainsi qu’une application web pour piloter et monitorer le cluster. @@ -10,7 +10,7 @@ Ce dépôt contient une petite infrastructure Docker Swarm capable de bruteforce - **worker** : service de bruteforce MD5 (conteneurs réplicables dans le Swarm). - **frontend** : application React permettant d’envoyer des hash, choisir les modes *gentil/normal/agressif* et visualiser l’état du cluster. - **infra** : configuration Docker Swarm (stack) et scripts éventuels. -- **CI** : workflows d’intégration continue (dossier `.github/workflows/`). +- **CI** : workflows d’intégration continue (fichier `.gitlab-ci.yml`). ### Prérequis