Skip to content

fix(ml-backend): add vercel.json routing and fix read-only filesystem… #64

fix(ml-backend): add vercel.json routing and fix read-only filesystem…

fix(ml-backend): add vercel.json routing and fix read-only filesystem… #64

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main # Trigger the workflow on push to the main branch
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Backend image
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/excalidraw-backend:latest
- name: Build and push Frontend image
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./frontend/Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/excalidraw-frontend:latest