35 lines
845 B
YAML
35 lines
845 B
YAML
name: Build and Deploy Chitfund
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-backend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Build and push Backend
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: ./backend
|
|
push: true
|
|
tags: 192.168.8.250:5000/chitfund-backend:latest
|
|
|
|
build-frontend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Build and push Frontend
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: ./luckychit
|
|
push: true
|
|
tags: 192.168.8.250:5000/chitfund-frontend:latest |