From 7e515504a73d4f9a537e3518109fce915753dbb0 Mon Sep 17 00:00:00 2001 From: samyw10 <97761482+samyw10@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:01:17 -0400 Subject: [PATCH] config ci cd frontend et backend --- .github/workflows/backend-deploy.yml | 22 ++++++++++++++++++++++ .github/workflows/frontend-deploy.yml | 22 ++++++++++++++++++++++ README.md | 2 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/backend-deploy.yml create mode 100644 .github/workflows/frontend-deploy.yml diff --git a/.github/workflows/backend-deploy.yml b/.github/workflows/backend-deploy.yml new file mode 100644 index 0000000..3d590ea --- /dev/null +++ b/.github/workflows/backend-deploy.yml @@ -0,0 +1,22 @@ +name: Build and Deploy Backend + +on: + push: + branches: + - pipeline + paths: + - 'server/**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Build and push Docker image for Backend + uses: docker/build-push-action@v2 + with: + context: ./server + file: ./server/Dockerfile + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_BACKEND_REPO }}:latest diff --git a/.github/workflows/frontend-deploy.yml b/.github/workflows/frontend-deploy.yml new file mode 100644 index 0000000..3467fef --- /dev/null +++ b/.github/workflows/frontend-deploy.yml @@ -0,0 +1,22 @@ +name: Build and Deploy Frontend + +on: + push: + branches: + - pipeline + paths: + - 'client/**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Build and push Docker image for Frontend + uses: docker/build-push-action@v2 + with: + context: ./client + file: ./client/Dockerfile + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_FRONTEND_REPO }}:latest diff --git a/README.md b/README.md index f06ab4c..ae7013a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# EvalueTonSavoir t +# EvalueTonSavoir EvalueTonSavoir est une plateforme open source et auto-hébergée qui poursuit le développement du code provenant de https://github.com/ETS-PFE004-Plateforme-sondage-minitest. Cette plateforme minimaliste est conçue comme un outil d'apprentissage et d'enseignement, offrant une solution simple et efficace pour la création de quiz utilisant le format GIFT, similaire à Moodle.