mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
config ci cd frontend et backend
This commit is contained in:
parent
b75b6ceb50
commit
330a583b1b
2 changed files with 38 additions and 25 deletions
31
.github/workflows/backend-deploy.yml
vendored
31
.github/workflows/backend-deploy.yml
vendored
|
|
@ -1,19 +1,26 @@
|
||||||
name: Build and Deploy Backend
|
name: CI/CD Pipeline for Backend
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ pipeline ]
|
branches: [ pipeline ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_and_push_backend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Build and push Docker image for Backend
|
|
||||||
uses: docker/build-push-action@v2
|
- name: Log in to Docker Hub
|
||||||
with:
|
uses: docker/login-action@v1
|
||||||
context: ./server
|
with:
|
||||||
file: ./server/Dockerfile
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
push: true
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_BACKEND_REPO }}:latest
|
|
||||||
|
- 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
|
||||||
|
|
|
||||||
32
.github/workflows/frontend-deploy.yml
vendored
32
.github/workflows/frontend-deploy.yml
vendored
|
|
@ -1,20 +1,26 @@
|
||||||
name: Build and Deploy Frontend
|
name: CI/CD Pipeline for Frontend
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ pipeline ]
|
branches: [ pipeline ]
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_and_push_frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Check Out Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Build and push Docker image for Frontend
|
|
||||||
uses: docker/build-push-action@v2
|
- name: Log in to Docker Hub
|
||||||
with:
|
uses: docker/login-action@v1
|
||||||
context: ./client
|
with:
|
||||||
file: ./client/Dockerfile
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
push: true
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_FRONTEND_REPO }}:latest
|
|
||||||
|
- 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue